Indian Institute of Technology Madras
BS Degree Programme · Examination & Study Paper
Programming in C
Conditions & loops
Official Paper
Examination Instructions & Guidelines
- Solve on notebook/paper first before checking solutions.
- MCQ: Exactly 1 option is correct. Negative marking applies.
- MSQ: One or more options correct. Select all to score.
- NAT: Numerical response. No negative marking.
- Scientific calculator allowed for all calculations.
- Official answer key is sealed at the end of this sheet.
Quiz 1 · 26 Oct 2025 (AN)Quiz 1
- Q1MCQ4 Marks·Choose one option

- A0 1 2 5 6
- B0 1 5 6
- C1 2 3 6
- D1 2 3 5 6
- Q2MSQ3 Marks·Choose all correct options

- A

- B

- C

- D

- E

- A
- Q3MSQ3 Marks·Choose all correct options

- Aa = 6, b = 4
- Ba = 3, b = 5
- Ca = 2, b = -3
- Da = 4, b = 6
- Q4NAT4 Marks·Write the number
Your answer:
End Term · 31 Aug 2025 (FN)End Term
- Q5MCQ4 Marks·Choose one option

- A

- B

- C

- D

- A
- Q6MCQ5 Marks·Choose one option

- A2 4 6 8
- B2 4 6 8 10
- CInfinite loop
- D2 4 6 8 10 12
- Q7NAT5 Marks·Write the number
Your answer:
End Term · 31 Aug 2025 (AN)End Term
- Q8MCQ4 Marks·Choose one option

- ATo exit the loop entirely and continue with the program statement immediately following the loop.
- BTo restart the loop from the beginning.
- CTo immediately proceed to the next iteration of the loop, skipping any remaining statements in the current iteration.
- DTo execute a block of code only a fixed number of times.
- Q9MCQ5 Marks·Choose one option

- A(0,0), (0,2), (1,1), (1,3), (2,2), (2,3)
- B(0,0), (0,2), (0,3), (1,1), (2,2)
- C(0,0), (0,2), (1,1), (1,3), (2,2)
- D(0,1), (0,3), (1,1), (1,3), (2,2), (2,3)
- Q10NAT5 Marks·Write the number
Consider the following C code:
What will be the output of the given program?Your answer: