BHARATHIDASAN ENGINEERING COLLEGE
MODEL EXAMINATION - 2025
Degree / Branch: B.E /EEE Year / Sem : 01/ 01
Sub. Code / Name: CS25C01/Computer Programming C Date : 04-12-2025
Total Marks : 100 Marks Time Duration: 2.5 Hour
PART – A (10 X 2 = 20 MARKS)
1. Define Computer Programming?
2. Write the C Program for Addition of Two Numbers?
3. What is the typedef function in C?
4. Write the Syntax for while and do while loop statements?
5. Define Break statement and write the syntax for it?
6. What is Scope of Variables?
[Link] the C Program for Inserting an Elements in an array?
8. Define Pointer Operators and its types?
9. Difference between Union and Structure?
10. What is the output of the following program?
#include<stdio.h>
#include<conio.h>
int main()
{
int i;
i = 1,2,3
printf(“%d”, i);
return 0;
getch();
}
Part – B (5x 16 = 80 Marks)
11. (a) i) Discuss the Structure of C Program in detail and explain with simple hello world
programs?
(ii) Write a C Program to check whether the integer is palindrome or not?
(Or)
(b) i) Write the C Program for Interactive mode and Script mode?
ii) Explain any 3 operators used in C with Example?
12. (a) Explain the various looping statements with Example C Program?
(Or)
(b) i) Write the definition and C Program for Call by value and Call by Reference?
ii) What are the various data types are supported by C Language?
13. (a) i) Explain various string handling functions provided in C standard library
like strlen(), strcat(), strcpy(), and strcmp() with Examples?
ii) What is a recursive function? Write a simple binary search program using
recursive functions?
(Or)
(b) i) Write different types of functions with respect to return type arguments and explain
all types with syntax and example program?
ii) Explain the header file that contains various methods for performing mathematical
operations.
14. (a) i) A record contain information regarding Student system such as sid, sname, sdept, sdob.
Create a Structure to hold the record of students. Write the C Program.
ii) Explain dynamic memory allocation function?
(Or)
(b). i) Explain briefly the Pointer arithmetic with suitable Examples?
ii) Explain the Recursive Functions and Write a C Program for Factorial number using
Recursive Functions?
15. (a) i) What is file and list any five operations that can be performed on a file?
ii) Explain briefly String Handling with suitable Examples?
(Or)
b) i) Difference between sequence access file and random access file?
ii) Explain <stdlib.h>, <stdio.h> and <string.h> header files with example?