MG University Btech Degree Examination Computer Science S3 December 2013- PSCP

C programming S3 Question done at December 2012

 

B.TECH. DEGREE EXAMINATION, DECEMBER 2012

Third Semester

Branch : Computer Science and Engineering/Information Technology

CS 010 303/IT 010 306PROBLEM SOLVING AND COMPUTER PROGRAMMING
(C.S. and I.T.)

(New SchemeRegular/Improvement/Supplementary)
Time : Three Hours Maximum : 100 Marks
Part A

Answer all questions.
Each question carries 3 marks.
 

Define 'Macros'.
What are the different control statements in C?
Explain freed ( ).
What are the basic data types in C?
What is aKeyword?


(5 x 3 15 marks)

Part B.
Answer all questions.
Each question carries 5 marks.
 

Explain the structure of a C program.

 

Define function. What is a void function?


What is a multi-dimensional array? Explain how the elements of a multi-dimensional array are accessed.

Compare 'structure' and 'union'.
Illustrate the bitwise operators and their usage. (5x 5 =25 marks)
Part C
Answer either (a) or (b) from each question.
Each full question carries 12 marks.


11. (a) Write an algorithm and a flowchart to select the largest number from a set of 50 numbers. (12 marks )
Or
(b) Write a C program to evaluate I +1/2 +1/3 +......+1/n(12 marks)


12.(a) Write a C program to add two m x n matrices, (12 marks)
Or
(b) Explain the different control statements in C with suitable examples. (12 marks)
13(a) Write a C program to display a string in reverse order. (12 marks)
Or
(b) Write the differences between macro and function. Write a C program to find the factorial of a number using function.
14.(a) Write a C program to read in the marks of 5 subjects of 5 students and display the result with standard rules for result.
(12 marks)
Or
(b) Using pointers, write a C program to read in an array of 50 numbers and print its elements in reverse order.
)
15(a) Write a C program to illustrate appending items to an existing file. (12 marks)
Or
(b) Explain Dynamic memory allocation in detail. Explain the different library routines which serve as memory management functions.

(12 marks)

[5 x 12 = 60 marks]

 

 

mg-university-btech-degree-examination-computer-science-s3-december-2013--pscp