Indian Institute of Technology Madras
BS Degree Programme · Examination & Study Paper
Programming in C
Quiz 1 · 26 Oct 2025 (Afternoon)
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.
- Q1MCQ2 Marks·Choose one option
Which of the following correctly ranks the memory units from fastest to slowest access time?
- ACache → Registers → RAM → Hard Disk → Optical Disk
- BRegisters → Cache → RAM → SSD → Hard Disk
- CRAM → Registers → Cache → SSD → Hard Disk
- DRegisters → RAM → Cache → HDD → SSD
- Q2MCQ2 Marks·Choose one option
In an N-bit signed integer representation using 2’s complement, what is the range of values?
- A

- B

- C

- D

- A
- Q3MCQ2 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.
- Q4MCQ3 Marks·Choose one option
The decimal number 2748 is represented in hexadecimal as:
- A0xABC
- B0xABD
- C0xABE
- D0xABF
- Q5MCQ3 Marks·Choose one option
What is the minimum number of bits required to represent all integer values from −120 to +120 in a signed binary representation?
- A5 Bits
- B6 bits
- C7 bits
- D8 bits
- E9 bits
- Q6MCQ3 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
- Q7MCQ3 Marks·Choose one option

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

- A6 5 4
- B6 4 5
- C6 3 5
- D6 5 3
- Q9MCQ4 Marks·Choose one option

- ASum of first N natural numbers
- BSum of squares of first N natural numbers
- CSum of cubes of first N natural numbers
- DFactorial of N
- Q10MCQ4 Marks·Choose one option

- A0 1 2 5 6
- B0 1 5 6
- C1 2 3 6
- D1 2 3 5 6
- Q11MSQ2 Marks·Choose all correct options
Which of the following are key functions of the Arithmetic Logic Unit (ALU)?
- AAddition and subtraction
- BLogical comparisons (>, <, =)
- CMemory storage management
- DMultiplication and division
- EInstruction decoding
- Q12MSQ2 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.
- Q13MSQ3 Marks·Choose all correct options

- A

- B

- C

- D

- E

- A
- Q14MSQ3 Marks·Choose all correct options

- Aa = 6, b = 4
- Ba = 3, b = 5
- Ca = 2, b = -3
- Da = 4, b = 6
- Q15NAT3 Marks·Write the number
Your answer: - Q16NAT4 Marks·Write the number
Your answer: - Q17NAT4 Marks·Write the number
Your answer: