0% found this document useful (0 votes)
43 views1 page

CS3251 CP QP Cit 1

This document contains a sample assessment test for a programming in C course. It has two parts - multiple choice questions and long answer questions. Part A contains 6 multiple choice questions. Part B contains two long answer questions, one on functions and structures and the other involving parameter passing or sorting algorithms.

Uploaded by

Jasmine Rani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views1 page

CS3251 CP QP Cit 1

This document contains a sample assessment test for a programming in C course. It has two parts - multiple choice questions and long answer questions. Part A contains 6 multiple choice questions. Part B contains two long answer questions, one on functions and structures and the other involving parameter passing or sorting algorithms.

Uploaded by

Jasmine Rani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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