ULTRA College of Engineering and Technology, Madurai
Internal Test-III
Regulations – 2021
Academic Year 2023– 2024, Even Semester
Programme: BE / CSE & B.TECH / IT Year /Semester: II/IV
Subject Code/ Title: CS3251/Programming in C Date:28.06.2024
Time: 3 hrs
REGISTER NUMBER
Answer all Questions
PART-A 10x2=20 marks
S.NO Questions Marks COs K-level
1 What is an array? Write the syntax for array. 2 CO2 K1
2 How does a preprocessor work? 2 CO2 K1
3 List the advantages of recursion. 2 CO2 K3
4 Sort the following elements using selection sort method 2 CO2 K2
23,55,16,78,2.
5 What is meant by structure definition? 2 CO3 K1
6 What is the output of the following code fragment? 2 CO3 K1
int x=456, "p1, p2;
p1=&x; p2=&p1;
printf ("Value of x is: %d\n", s);
printf("Value of "p1 is: %d\n", "p1);
printf ("Value of "p2 is: %d\n", *p2);
7 Given an array int a [10] = {101, 012, 103, 104, 105, 106, 107, 108, 2 CO3 K2
109, 110). Show the
memory representation and calculate its length.
8 What is register storage in storage class? 2 CO4 K2
9 List the File Operations in C paradigm 2 CO4 K2
10 Write the syntax for pointers to structure. 2 CO4 K1
PART-B 5x13=65 marks
S.NO Questions Marks CO s K-level
11(a) i)What is an array? Explain about various types of array in detail. 13 CO2 K2
ii) Write a C program to multiply two matrices by getting input
from the user.
(OR)
11(b) Explain Binary Search Procedure.Write C program to perform 13 CO2 K2
binary search and explain.
12(a) What are the different types of string functions?Describe with their 13 CO3 K1
C program.
(OR)
12(b) i)Discuss how you can evaluate the mean,median,mode for an array 13 CO3 K5
of numbers.Write the c program to evaluate the mean median mode
for an array of numbers and expain.
ii) Explain in algorithm and write a C program to re-order a one-
dimensional array of numbers in descending order.
13(a) Explain the concept of pass by value and pass by reference with 13 CO4 K4
suitable example in C programming language.
(OR)
13(b) i)Discuss on recursive function. Write a C program to find factorial 13 CO4 K2
of n using recursion.
ii) Write a C program to reverse a string using recursion
14(a) Explain the purpose of a function prototype. And specify the 13 CO2 K2
difference between user defined function and built-in functions.
(OR)
14(b) Write a short note on singly linked list and specify how the node 13 CO2 K2
are created in singly linked list.
15(a) i)Define structure in C. Also specify the pointer and structure with 13 CO3 K2
example.
ii)Write a C program using structures to prepare the students mark
statement. The number of records is created based on the user input.
(OR)
15(b) Describe command line arguments with example C program 13 CO3 K2
PART-C 1x15=15marks
S.NO Questions Marks CO s K-level
16 (a) Explain about the various decision making and branching 15 CO2 K6
statements in C programming
(OR)
16(b) Explain the different types of operators used in C with necessary
program. 15 CO4 K6
Course Outcome (CO):
S.No. Question numbers Course Outcome Marks
1,2,3,4,11(a),11(b),14(a),14(b),
1 CO2 47
16(a)
2 5,6,7,12(a),12(b),15(a),15(b) CO3 32
8,9,10,13(a),13(b),16(b) CO4 32
Bloom’s Taxonomy level K1 K2 K3 K4 K5 K6
Percentage of Questions 27.3 50 4.5 4.5 4.5 9.2
Bloom’s Taxonomy Level
K1- Remember, K2- Understand, K3- Apply, K4- Analyze, K5- Evaluate and K6- Create