Section A – (30 Marks)
Q1. (10 Marks)
Define the following with examples:
a) Compiler
b) Variable
c) Data type
d) Function
e) File
Q2. (10 Marks)
Explain the difference between int, float, char, and double with examples.
Q3. (10 Marks)
What are keywords and identifiers in C? Give two examples of each.
Section B – (40 Marks)
Q4. (15 Marks)
Write the logic (not full code) to find the largest of three numbers using if-else.
Q5. (10 Marks)
Explain the difference between while, do-while, and for loops with one real-life example.
Q6. (15 Marks)
How are arrays declared and accessed in C? What are their advantages?
Section C – Evaluating (30 Marks)
Q7. (15 Marks)
Distinguish between local and global variables in C.
Q8. (15 Marks)
Describe arithmetic operators in C with examples