Indian Institute of Technology Madras
BS Degree Programme · Examination & Study Paper
Programming in Python
End Term · 22 Dec 2024 (Forenoon)
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.
- Q1MCQ3 Marks·Choose one option

- A

- B

- C

- D

- A
- Q2MCQ3 Marks·Choose one option

- A

- B

- C

- D

- A
- Q3MCQ3 Marks·Choose one option

- A

- B

- C

- D

- A
- Q4MCQ3 Marks·Choose one option

- A

- B

- C

- D

- A
- Q5MCQ3 Marks·Choose one option

- AThe return statement in line 3 which is inside the if-block
- BThe return statement in line 4 which is outside the if-block
- CBoth the return statements are executed
- DNeither of the return statements is executed
- Q6MCQ3 Marks·Choose one option

- A

- B

- C

- D

- A
- Q7NAT3 Marks·Write the number
Your answer: - Q8NAT3 Marks·Write the number
Your answer: - Q9NAT3 Marks·Write the number
Your answer: - Q10NAT3 Marks·Write the number
Your answer: - Q11NAT3 Marks·Write the number
Your answer: - Q12MSQ3 Marks·Choose all correct options

- A

- B

- C

- D

- E

- A
- Q13MSQ3 Marks·Choose all correct options

- A

- B

- C

- D

- A
- Q14MSQ3 Marks·Choose all correct options

- A

- B

- C

- D

- A
Read the passage below, then answer Q15–Q16
Q15MCQ2 Marks·Choose one option
- A

- B

- C

- D

- A
- Q16MCQ2 Marks·Choose one option

- A

- B

- C

- D

- A
Read the passage below, then answer Q17–Q19
Q17MCQ1.5 Marks·Choose one option
- A

- B

- C

- D

- A
- Q18MSQ1.5 Marks·Choose all correct options

- A

- B

- C

- D

- A
- Q19MCQ1 Mark·Choose one option

- A

- B

- C

- D

- A