VARDHAMAN COLLEGE OF ENGINEERING
(AUTONOMOUS)
I [Link] I Semester Continuous Assessment - II, December - 2025
(Regulations: VCE-R22)
PROBLEM SOLVING THROUGH C
(COMMON TO CSE, IT, CSM, CSD, ECE, EEE & ME)
Date: 24 December 2025 Time: 2 Hours Maximum Marks: 30
Answer all Questions in Part-A
Answer any FOUR Questions in Part-B
Course Outcomes with Bloom’s Levels:
Bloom’s
CO# CO Statement
Level (L#)
CO1 Identify various building blocks to write a C program L3
CO2 Use control statements for solving a given problem L3
CO3 Write programs using arrays and strings to store and manipulate sequential Data L3
CO4 Build programs with functions and structures for organizing a complex task. L3
CO5 Make use of Pointers and Files to store and retrieve data. L3
Questions:
PART-A (Multiple Choice / Fill in the Blanks / Match the Following / Short Answer Type Questions)
CO# BL# Marks
1. a) Write a program fragment to calculate the sum of elements in an 1M
CO3 L2
integer array.
b) Identify the role of the strlen() function in C. CO3 L2 1M
c) Which is more appropriate for reading multiple words and give syntax. 1M
CO3 L2
a. printf() b. puts() c. gets() d. scanf()
d) Define a function and list its components in C. CO4 L2 1M
e) How do you declare a union in C? CO4 L2 1M
f) Show how to declare a structure for storing a student's name and 1M
CO4 L3
marks.
g) Define a pointer and explain its use in C. CO5 L2 1M
h) Show how to use the fseek() function for random file access. 1M
CO5 L2
i) Identify and list out the modes of a file in C. CO5 L3 1M
j) Write a code snippet to declare and use an array of structures. CO4 L3 1M
PART-B (Descriptive Questions)
2. Write a program to find the largest and smallest elements in a one- 5M
CO3 L2
dimensional array.
3. Explain the following string handling functions with example: 5M
i. strcpy() ii. strcat() iii. strrev() iv. strcmp() CO3 L2
4. Write a C program to maintain a book structure containing name, author 5M
CO4 L3
and pages as structure members and display the contents.
5. Demonstrate user defined functions with example CO4 L2 5M
6. Write a C program to illustrate function call by reference. CO5 L3 5M
7. How are file operations like fopen, fclose, and fseek used? Provide details. CO5 L3 5M