Indian Institute of Technology Madras
BS Degree Programme · Examination & Study Paper
Programming in C
Operators & expressions
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
- Q1MCQ2 Marks·Choose one option
Which of the following statements about Boolean conditions in C is true?
- AIn C, 0 represents true, and any non-zero value represents false.
- BIn C, 0 represents false, and any non-zero value represents true.
- CC treats only positive integers as true.
- DIn C, positive integers represent true, and negative integers represent false.
- Q2MCQ3 Marks·Choose one option

- Aa = 13, b = -4, c = 12
- Ba = 12, b = -3, c = 11
- Ca = 14, b = -5, c = 13
- Da = 11, b = -2, c = 10
- Q3MCQ3 Marks·Choose one option

- A100
- B200
- C300
- D400
- Q4MCQ3 Marks·Choose one option

- A6 5 4
- B6 4 5
- C6 3 5
- D6 5 3
- Q5MSQ2 Marks·Choose all correct options
Which statement is true about short-circuit evaluation in C?
- AIn expr1 && expr2, if expr1 is false, expr2 is not evaluated.
- BIn expr1 || expr2, if expr1 is true, expr2 is not evaluated.
- CIn expr1 && expr2, if expr1 is true, expr2 is not evaluated.
- DIn expr1 || expr2, if expr1 is false, expr2 is not evaluated.
End Term · 31 Aug 2025 (FN)End Term
- Q6MCQ4 Marks·Choose one option

- APre-increment changes the value after the expression is evaluated, while post- increment changes it before the expression is evaluated.
- BPre-increment changes the value before the expression is evaluated, while post-increment changes it after the expression is evaluated.
- CPre-increment is used with integers, while post-increment is used with floating-point numbers.
- DPre- and Post-increment are identical in operation. They are two ways of writing the same statement.
- Q7NAT4 Marks·Write the number
Your answer:
End Term · 31 Aug 2025 (AN)End Term
- Q8MCQ4 Marks·Choose one option

- A

- B

- C

- D

- A
- Q9NAT4 Marks·Write the number
Your answer: