For Solved Question Papers of UGC-NET/GATE/SET/PGCET in Computer Science, visit

Similar documents
Scheme G. Sample Test Paper-I. Course Name : Computer Engineering Group Course Code : CO/CD/CM/CW/IF Semester : Second Subject Tile : Programming in C

Questions Bank. 14) State any four advantages of using flow-chart

Aryan College. Fundamental of C Programming. Unit I: Q1. What will be the value of the following expression? (2017) A + 9

VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR

UNIT I : OVERVIEW OF COMPUTERS AND C-PROGRAMMING

Advanced C Programming and Introduction to Data Structures

KLiC C Programming. (KLiC Certificate in C Programming)

PROGRAMMING IN C AND C++:

Code No: R Set No. 1

(i) Describe in detail about the classification of computers with their features and limitations(10)


Introduction to C Language (M3-R )

1 P a g e A r y a n C o l l e g e \ B S c _ I T \ C \

Hrs Hrs Hrs Hrs Hrs Marks Marks Marks Marks Marks

PERIYAR CENTENARY POLYTECHNIC COLLEGE Periyar Nagar- Vallam Thanjavur

B. V. Patel Institute of Business Management, Computer & Information Technology, UTU 2013

Kadi Sarva Vishwavidyalaya, Gandhinagar

Subject: Fundamental of Computer Programming 2068

C Programming SYLLABUS COVERAGE SYLLABUS IN DETAILS

Reg. No. : Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, JANUARY First Semester GE 6151 COMPUTER PROGRAMMING

Subject: PROBLEM SOLVING THROUGH C Time: 3 Hours Max. Marks: 100

C Programming. Course Outline. C Programming. Code: MBD101. Duration: 10 Hours. Prerequisites:

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING COMPUTER PROGRAMMING LABORATORY LAB MANUAL - 15CPL16 SEMESTER-I/II

UNIVERSITY OF ENGINEERING & MANAGEMENT, KOLKATA C ASSIGNMENTS

M3-R4: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE

Tribhuvan University Institute of Science and Technology 2065

CSCI 171 Chapter Outlines

Reg. No. : Question Paper Code : 27157

Decision Making -Branching. Class Incharge: S. Sasirekha

Syllabus of Diploma Engineering. Computer Engineering. Semester: II. Subject Name: Computer Programming. Subject Code: 09CE1104

Euclid s algorithm, 133

COMPUTER PROGRAMMING LAB

DR. A.P.J. ABDUL KALAM TECHNICAL UNIVERSITY LUCKNOW. Evaluation Scheme & Syllabus. For. B.Tech. First Year (Programming for Problem Solving)

Practice problems Set 2

MODULE 5: Pointers, Preprocessor Directives and Data Structures

Guide for The C Programming Language Chapter 5

Q1. Multiple Choice Questions

A3-R3: PROGRAMMING AND PROBLEM SOLVING THROUGH 'C' LANGUAGE

Arrays, Pointers and Memory Management

Course Title: C Programming Full Marks: Course no: CSC110 Pass Marks: Nature of course: Theory + Lab Credit hours: 3

E.G.S. PILLAY ENGINEERING COLLEGE (An Autonomous Institution, Affiliated to Anna University, Chennai) Nagore Post, Nagapattinam , Tamilnadu.

COP 3223 Introduction to Programming with C - Study Union - Fall 2017

(Following Paper ID and Roll No. to be filled by the student in the Answer Book)

SAURASHTRA UNIVERSITY

Unit IV & V Previous Papers 1 mark Answers

Long Questions. 7. How does union help in storing the values? How it differs from structure?

C & Data Structures syllabus

KENDRIYA VIDYALAYA SANGATHAN BHUBANESWAR REGION SPLITUP SYLLABUS FOR COMPUTER SCIENCE CLASS XI

Arrays and Pointers (part 1)

#3. (Recursion) Write a recursive function to compute f(x) = f(x - 1) + f(x - 2) with f(0) = 0 and f(1) = 1.

PESIT Bangalore South Campus Hosur road, 1km before ElectronicCity, Bengaluru -100 Department of Basic Science and Humanities

Features of C. Portable Procedural / Modular Structured Language Statically typed Middle level language

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING UNIT-1

'C' Programming Language

Gujarat University M. Sc. Computer Science [S. F.] Semester-1 Syllabus Gujarat Arts & Science College, Ahmedabad.

Dynamic memory allocation

Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS

B.V. Patel Institute of Business Management, Computer & Information Technology, Uka Tarsadia University

ESC101N: Fundamentals of Computing End-sem st semester

Midterm Examination # 2 Wednesday, March 19, Duration of examination: 75 minutes STUDENT NAME: STUDENT ID NUMBER:

3/22/2016. Pointer Basics. What is a pointer? C Language III. CMSC 313 Sections 01, 02. pointer = memory address + type

Assignment: 1. (Unit-1 Flowchart and Algorithm)

advanced data types (2) typedef. today advanced data types (3) enum. mon 23 sep 2002 defining your own types using typedef

IV Unit Second Part STRUCTURES

Writing an ANSI C Program Getting Ready to Program A First Program Variables, Expressions, and Assignments Initialization The Use of #define and

10/20/2015. Midterm Topic Review. Pointer Basics. C Language III. CMSC 313 Sections 01, 02. Adapted from Richard Chang, CMSC 313 Spring 2013

Pointers (part 1) What are pointers? EECS We have seen pointers before. scanf( %f, &inches );! 25 September 2017

Procedural programming with C

Arrays and Pointers (part 1)

Kurt Schmidt. October 30, 2018

Name :. Roll No. :... Invigilator s Signature : INTRODUCTION TO PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70

The Hyderabad Public School, Begumpet, Hyderabad, A.P

211: Computer Architecture Summer 2016

IECD Institute for Entrepreneurship and Career Development Bharathidasan University, Tiruchirappalli 23.

COMPUTER SCIENCE HIGHER SECONDARY FIRST YEAR. VOLUME II - CHAPTER 10 PROBLEM SOLVING TECHNIQUES AND C PROGRAMMING 1,2,3 & 5 MARKS

Note: unless otherwise stated, the questions are with reference to the C Programming Language. You may use extra sheets if need be.

Unit 7. Functions. Need of User Defined Functions

Lectures 5-6: Introduction to C

Class 9 Saturday, Feb 14

M4.1-R3: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE

C Programming Review CSC 4320/6320

PESIT-BSC Department of Science & Humanities

A. Year / Module Semester Subject Topic 2016 / V 2 PCD Pointers, Preprocessors, DS

Functions. Arash Rafiey. September 26, 2017

Software Development & Education Center C Programming

Loops / Repetition Statements

INDIAN SCHOOL MUSCAT COMPUTER SCIENCE(083) CLASS XI

COP 3223 Introduction to Programming with C - Study Union - Spring 2018

CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 13, SPRING 2013

Linked List. April 2, 2007 Programming and Data Structure 1

I BCS-031 BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination. June, 2015 BCS-031 : PROGRAMMING IN C ++

Sample Copy. Not For Distribution.

MODULE V: POINTERS & PREPROCESSORS

17CS33:Data Structures Using C QUESTION BANK

M1-R4: Programing and Problem Solving using C (JULY 2018)

C PROGRAMMING LAB MANUAL

Lab 3. Pointers Programming Lab (Using C) XU Silei

Loops / Repetition Statements

Madhya Pradesh Bhoj (Open) University, Bhopal

IMPORTANT QUESTIONS IN C FOR THE INTERVIEW

Transcription:

For Solved Question Papers of UGC-NET/GATE/SET/PGCET in Computer Science, visit http://victory4sure.weebly.com/

For Solved Question Papers of UGC-NET/GATE/SET/PGCET in Computer Science, visit http://victory4sure.weebly.com/

1 a. What are data types? Mention the different data types supported by C language, giving an example to each. (5 Marks) 1 b. Write a C program which takes as input p, t, r. Compute the simple interest and display the result. (5 Marks) 1

1 c. What is an operator? List and explain various types of operators. (10 Marks) 2

3

2 a. What is a token? What are the different types of tokens available in C language? Explain. (08 Marks) 4

2 b. Write C expressions corresponding to the following (Assume all quantities are of same type) (06 Marks) 2 c. What is the value of x in the following code segments? Justify your answers: (06 Marks) 5

3 a. What are the different types of conditional decision making statements? Explain each with example. (10 Marks) 6

7

8

3 b. Write a C program to simulate simple calculator that performs arithmetic operations using switch statements. Error message should be displayed, if any attempt is to made to divide by zero. (10 Marks) 9

4 a. Explain with example formatted input output statements in C. (06 Marks) 10

4 b. List four differences between while loop and do-while loop along with syntax and example. (06 Marks) 11

4 c. Design and develop a C program to reverse a given four digit integer number and check whether it is a palindrome or not. (08 Marks) 12

5 a. What is an array? Explain different methods of initialization of single dimensional arrays. (06 Marks) 13

14

5 b. Write a C program to read N integers into an array A and to i) find the sum of odd numbers ii) find the sum of even numbers iii) find the average of all numbers Output the results computed with appropriate headings. (06 Marks) 15

5 c. How string is declared and initialized? Explain any FOUR string manipulation functions with examples. (08 Marks) 16

17

6 a. Explain function call, function definition and function prototype with examples to each. (06 Marks) 18

6 b. What are actual parameters and formal parameters? Illustrate with example. (06 Marks) 6 c. What is recursion? Write a C program to compute the factorial of a given number n using recursion. (08 Marks) 19

7 a. How structure is different from an array? Explain declaration of a structure with an example. (06 Marks) 20

7 b. Explain with an example, how to create a structure using typedef. (04 Marks) 21

7 c. Write a C program to input the following details of N students using structure: Roll No: integer, name: string, marks: float, grade: char Print the names of the students with marks >= 60.0%. (10 Marks) 22

8 a. Explain following file operations along with syntax and examples: i)fopen() ii)fclose() iii)fscanf() iv) fprintf() v)fgets(). (10 Marks) 23

8 b. Write a C program to read the contents from the file called abc: text, count the number of characters, number of lines and number of white spaces and output the same. (10 Marks) 24

8 a. Define pointer variable. Explain with an example, the declaration and initialization of pointer variable. (06 Marks) 25

8 b. Explain following C functions along with syntax and example to each. i) malloc() ii) calloc() iii) realloc iv) free() (08 Marks) 26

8 c. Develop a C program to read two numbers and function to swap these numbers using pointers. (06 Marks) 27

10. Write short notes on following: a. Preprocessor directives b. Primitive and non primitive data types c. Stack operations d. Types of queues. (20 Marks) a) 28

b) c) 29

d) 30

For Solved Question Papers of UGC-NET/GATE/SET/PGCET in Computer Science, visit http://victory4sure.weebly.com/

For Solved Question Papers of UGC-NET/GATE/SET/PGCET in Computer Science, visit http://victory4sure.weebly.com/

For Solved Question Papers of UGC-NET/GATE/SET/PGCET in Computer Science, visit http://victory4sure.weebly.com/

PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPER DEC- 2015 1 a. Explain the structure of C program with example. (5 Marks) 1

PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPER DEC- 2015 1 b. Explain scanf() and printf() function in C language with syntax and examples. (5 Marks) For answer, refer Solved Paper June-2015 Q.No.4a. 1 c. Write a C program to find area of circle. (5 Marks) 2 a. What is an algorithm? Write an algorithm to find largest of 3 numbers. (5 Marks) 2

PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPER DEC- 2015 2 b. Explain the following operators in C language. i) Relational ii) Conditional iii) Logical (5 Marks) 3

PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPER DEC- 2015 2 c. What is an identifier? Give any 5 rules that are to be followed while declaring a variable. (4 Marks) 4

PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPER DEC- 2015 3 a. Explain the ELSE IF ladder with syntax and example. (8 Marks) 5

PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPER DEC- 2015 3 b. List the types of loops. Explain the working of any one type of loop with syntax and example. (8 Marks) 6

PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPER DEC- 2015 3 b. Write a program to read a year as an input and find whether it is a LEAP YEAR or not (8 Marks) 7

PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPER DEC- 2015 4 a. Explain SWITCH statement, with syntax and example. (8 Marks) 4 b. Differentiate between WHILE and DO-WHILE loops. (6 Marks) For answer, refer Solved Paper June-2015 Q.No.4b. 4 c. Write a program to find reverse of a number and check whether it is a PALINDROME or not (6 Marks) For answer, refer Solved Paper June-2015 Q.No.4c. 8

PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPER DEC- 2015 5 a. What is an ARRAY? Explain the different ways of initializing an array with examples. (7 Marks) For answer, refer Solved Paper June-2015 Q.No.5a. 5 b. What are the advantages of using User defined functions. (6 Marks) 9

PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPER DEC- 2015 5 c. Write a program to read a sentence and print the frequencies of each VOWEL and total count of CONSONANTS. (7 Marks) 10

PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPER DEC- 2015 6 a. Explain the different types of arrays, with syntax and examples. (7 Marks) 11

PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPER DEC- 2015 6 b. Explain any 4 string manipulating functions with examples. (8 Marks) 12

PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPER DEC- 2015 13

PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPER DEC- 2015 6 c. Define the following: i) Actual parameter ii) Formal parameter iii) Global variable (external variable) iv) Local variable (automatic variable) (5 Marks) 7 a. Define a STRUCTURE. Explain structure with syntax and example. (5 Marks) For answer, refer Solved Paper June-2015 Q.No.7a. 14

PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPER DEC- 2015 7 b. What is a FILE? Explain any 2 FILE functions, with example. (5 Marks) 7 c. Write a program to maintain a record 0f n student details using an array of structures with four fields (Roll number, Name, Marks, and Grade). Each field is of a appropriate data type. Print the marks of the students based on the student name as input (10 Marks) For answer, refer Solved Paper June-2015 Q.No.7c. 15

PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPER DEC- 2015 8 a. Differntiate between STRUCTURES and UNIONS. (5 Marks) 8 b. Explain the various MODES in which a FILE can be created successfully. (5 Marks) 16

PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPER DEC- 2015 8 c. Given 2 university information files student.txt and usn.txt that contains students Name and USN respectively. Write a program to create a new file called output.txt and copy and contents of files studentname.txt and usn.txt into output file in the sequence shown below. (10 Marks) 17

PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPER DEC- 2015 9 a. Define a POINTER. Explain how pointer variable is declared and initialized. (6 Marks) For answer, refer Solved Paper June-2015 Q.No.9a. 9 b. What are primitive and non-primitive data types? Give examples. (6 Marks) For answer, refer Solved Paper June-2015 Q.No.10b. 9 c. Write a program using pointers to compute sum, mean and standard deviation of all elements stored in an array of n real numbers. (8 Marks) 18

PROGRAMMING IN C & DATA STRUCTURES SOLVED PAPER DEC- 2015 10 a. Explain any 2 pre-processor directives in C language. (5 Marks) For answer, refer Solved Paper June-2015 Q.No.10a. 10 b. What is a STACK? Explain its applications. (5 Marks) 10 c. What is a QUEUE? Explain with example. (5 Marks) 10 d. Write a program to swap 2 numbers using call-by-refernce method. (5 Marks) For answer, refer Solved Paper June-2015 Q.No.9c. 19