C Previous Question Papers/Computer Programming Through 'C' - R2015 - 11-05-2016
C Previous Question Papers/Computer Programming Through 'C' - R2015 - 11-05-2016
No:
UNIT-I
1. a) What is flow chart? Describe various symbols used to represent flow chart. 7 Marks
b) Write a C-Program to find largest and smallest numbers of three given numbers. 7 Marks
2. a) Write the syntax for switch block. Explain it with a suitable example. 7 Marks
b) Write a program using do-while loop to calculate and print ‘M’ Fibonacci numbers. 7 Marks
UNIT-II
3. a) Write a function cube (x) to compute the cube of any given integer. 7 Marks
b) What do you mean by “function” ? Give the structure of user defined function and explain 7 Marks
about the arguments and return values.
4. a) Define Recursive function write a C Program to find the factorial of a given number using 7 Marks
recursive function? 7 Marks
b) Write any 4 pre-defined functions?
UNIT-III
5. a) Define Array? Explain the basic concept of Array? 7 Marks
b) Write a program to find maximum and minimum number from an Array of 10 elements. 7 Marks
6. a) What are string handling functions? Explain with suitable examples? 7 Marks
b) Write a program to find product of any two given matrices. 7 Marks
UNIT-IV
7. a) What is meant by pointer? Explain about pointer to Array. 6 Marks
b) Explain briefly the various operations allowed on pointer variables. 8 Marks
8. a) Write a program using pointers to compute the sum of all elements stored in an array. 8 Marks
b) Explain pointers as function arguments with an example program. 6 Marks
UNIT-V
9. a) Explain in detail array of structure and pointers to structure. 7 Marks
b) Write a program to copy the contents from one file to another file. 7 Marks
Page 1 of 2
Course Code: 15CT1102 R-2015 Reg. No:
10. a) Write a program to calculate student-wise total for three students using an array of structure. 7 Marks
b) Explain about fscanf( ), fgets( ), fwrite( ) functions with suitable examples. 7 Marks
The End
Page 2 of 2