Indian Institute of Technology Madras
BS Degree Programme · Examination & Study Paper
BSCS1001 · Computational Thinking
Qualifier · May 2024
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.
Useful Reference Data for this Paper

Q1MSQ3 Marks·Choose all correct options
- ARow 1: Incorrect data type of card number
- BRow 4: Invalid Date of Birth
- CRow 6: Physics score is out of range
- DRow 8: Total score is out of range
- Q2MCQ4 Marks·Choose one option

- AReturns “True” if and only if the difference between the maximum Physics marks and the minimum Chemistry marks is at least B
- BReturns “True” if and only if the difference between the maximum Chemistry marks and the minimum Physics marks is at most B
- CReturns “True” if and only if the difference between the maximum Physics marks and the minimum Chemistry marks is less than B
- DReturns “True” if and only if the difference between the maximum Chemistry marks and the minimum Physics marks is less than B
- Q3MCQ4 Marks·Choose one option

- ANumber of students with highest marks in Chemistry and lowest marks in Physics.
- BNumber of students with highest marks in Mathematics and lowest marks in Physics.
- CNumber of students with highest marks in Physics among the three subjects.
- DNumber of students with lowest marks in Physics and highest marks in Mathematics.
- Q4MCQ4 Marks·Choose one option

- ANumber of books which were published after the least recent year.
- BNumber of books which were published in the least recent year.
- CNumber of books which were published after the most recent year.
- DNumber of books which were published in the most recent year.
- Q5MSQ4 Marks·Choose all correct options

- A

- B

- C

- D

- A
- Q6MSQ4 Marks·Choose all correct options

- A

- B

- C

- D

- A
- Q7MSQ4 Marks·Choose all correct options

- A

- B

- C

- D

- A
- Q8MSQ5 Marks·Choose all correct options

- ALine 8: Incorrect expression for B
- BLine 15: Incorrect expression for C
- CLine 16: Incorrect conditional statement
- DNo mistake
- Q9MSQ5 Marks·Choose all correct options

- A

- B

- C

- D

- A
- Q10NAT3 Marks·Write the number
Your answer: - Q11NAT5 Marks·Write the number
Your answer: - Q12MCQ5 Marks·Choose one option

- Acount represents the number of pairs of students having either the same gender or from the same city or both.
- Bcount represents the number of pairs of students having the same gender and from the same city.
- Ccount represents the number of student pairs who either share the same gender and come from the same city, or who share neither the same gender nor the same city.
- Dcount represents the number of pairs of students having the same gender but not from the same city.