You are on page 1of 1

DEPARTMENT OF COMPUTER SCEINCE AND ENGINEERING

CENTRALIZED INTERNAL ASSESMENT TEST - I


CS3251 - PROGRAMMING IN C
Year & Semester: 01 & 02 Date :
Session: Marks : 60
PART - A Answer All questions. (6 × 2 = 12 Marks)
1. Define a C function to exchange the content of two variables? CO1 K2
2. Define Null directives? CO1 K1
3. Describe the execution of a C Program? CO1 K1
4. Define recursion? CO2 K1
5. Define sorting. What are the two type of sorting techniques? CO2 K2
6. Write the output of the following Code:
main()
{ int m,n,result,p;
m=4;n=6;p=8; CO2 K2
result=((m+n)/p-m);
printf(“Result is %d”,result);
}
PART - B Answer All Questions (3 × 16 = 48 Marks)
7. a. Explain the following with suitable examples
I)Function declaration. (16) CO1 K2
II)Call by reference, Call by value
(OR)
7. b. Write about structures, features and initialization of structures with example
(16) CO1 K2
program.
8. a. Write a C program to create mark sheet for students using structure. (16) CO2 K3
(OR)
8. b. i). Explain in detail about parameter passing methods in C program. (8) CO2 K2
ii). (8) CO2 K2
Explain in detail about various sorting algorithm and write a C program for any
two sorting algorithm.
9. a. i). Write a C program to find average marks obtained by a 30 students in a test. (8) CO1 K3
ii). Write a C program to merge two sorted array into a single sorted array. (8) CO1 K3
(OR)
9 b. i). Write C program to find subtraction of two matrices. (8) CO2 K3
ii). Write the C program for towers of hanoi. (8) CO2 K3
**** All The Best ****

You might also like