CS3251 1
CS3251 1
CS3251 1
B.E/B.TECH.DEGREE EXAMINATIONS,APRIL/MAY2024
SECOND SEMESTER
COMPUTER SCIENCE AND ENGINEERING
CS 3251-PROGRAMMING IN C
(Common to: Computer Science and Engineering (Artificial Intelligence and Machine
Learning)/ Computer Science and Engineering (Cyber Security)/ Computer and
Communication Engineering/ Information Technology)
(Regulations 2021)
[Also common to PTCS 3251-Programming in C for B.E. (Part-Time) - Second Semester-
Computer Science and Engineering - Regulations-2023]
Time: Three hours Maximum:100 marks
Answer All questions
PART A-(10x2 = 20 marke)
1. List at least any ten keywords in C language.
2. What is the output of the following program?
#include <stdio.h>
int main()
{
int i;
i=1, 2, 3;
printf ("%d", i);
return 0;
}
14. (a) Explain in detail about the dynamic memory allocation process and list memory
allocation/deallocation functions.
(16)
Or
(b) Discuss the concepts, advantages of self-referential structures and its types and explain
with an example program. (16)
15 (a) What is File Organization? Explain its types with pros and cons. (16)
Or
(b) (1) What is a File and list any five operations that can be performed on a file. (8)
(ii) What are command line arguments in C? Explain with a suitable program. (8)