Group A (Very Short Questions) Attempt all questions.
[10 × 1 = 10]a. What are keywords and identifiers?
b. Define recursion.
c. What is call by value?
d. Write syntax for declaring an array.
e. What is a structure?
f. Define pointer.
g. What is dynamic memory allocation?
h. What is a file in C?
i. What is command-line argument?
j. Name any one graphics function in C.
Group B Attempt any SIX questions.
[6 × 5 = 30]Explain with example how a c program is compiled and executed.
Differentiate between call by value and call by reference with suitable example.
Write a program to print the following pattern using loop:
| * | |||
| * | * | ||
| * | * | * | |
| * | * | * | * |
Describe any 3 string handling functions in C with example.
Explain structures in C. How are arrays of structures used?
Explain how malloc(), calloc() and free() are used to allocate memory dynamically.
Write a program to draw a circle at the center of the screen.
Group C Attempt any TWO questions.
[2 × 10 = 20]Write a C program to perform matrix multiplication using two-dimensional arrays. Explain how arrays and functions are used together in C.
Explain nested structures with example. Design a structure for student records (name, roll, marks) and write a program to store and display data for 5 students.
Write a program to create a file, write data, and read it back. Explain file handling functions used. Discuss random file access (fseek, ftell) with example.