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

Q1MCQ2 Marks·Choose one option
- A

- B

- C

- D

- E

- A
- Q2MCQ3 Marks·Choose one option

- A

- B

- C

- D

- A
- Q3MCQ4 Marks·Choose one option

- A

- B

- C

- D

- A
- Q4MCQ4 Marks·Choose one option

- A

- B

- C

- D

- A
- Q5MCQ4 Marks·Choose one option

- A

- B

- C

- D

- A
- Q6MCQ4 Marks·Choose one option
What will Count represent at the end of execution?- ANumber of words in which the same vowel occurs consecutively exactly once
- BNumber of words in which the same vowel occurs consecutively at least once
- CNumber of words in which the same vowel occurs consecutively exactly twice
- DNumber of words in which the same vowel occurs consecutively at least twice
- Q7MSQ2 Marks·Choose all correct options

- A

- B

- C

- D

- A
- Q8MSQ4 Marks·Choose all correct options

- A

- B

- C

- D

- A
- Q9MSQ4 Marks·Choose all correct options

- A

- B

- C

- D

- A
- Q10MSQ4 Marks·Choose all correct options

- A

- B

- C

- D

- E

- A
Read the passage below, then answer Q11–Q12

Answer the given subquestions based on the above information.
Q11MCQ3 Marks·Choose one option
- A

- B

- C

- D

- A
- Q12MCQ4 Marks·Choose one option

- A

- B

- C

- D

- A
Read the passage below, then answer Q13–Q14

Based on the above data, answer the given subquestion.
Q13MCQ4 Marks·Choose one option
- A

- B

- C

- D

- A
- Q14MCQ4 Marks·Choose one option

- A

- B

- C

- D

- A
Qualifier · May 2023Qualifier
Useful Reference Data for this Paper

Q15MCQ3 Marks·Choose one optionThe following pseudocode is executed using the "Words" dataset. What will count represent at the end of the execution?

- ANumber of words which are adjectives and have at least two letters
- BNumber of words which are either adjectives or have at most two letters but not both
- CNumber of words which are adjectives or have at most two letters or both
- DNumber of words which are not adjectives and have exactly two letters
- Q16MCQ3 Marks·Choose one option
The following pseudocode is executed using the “Library” dataset. What will A represent at the end of execution?

- ANumber of books written by author Kalam in English
- BNumber of books not written by author Kalam in English
- CNumber of English books written by authors other than Kalam
- DNumber of books that are written by Kalam or in English or both
- Q17MCQ3 Marks·Choose one option
The given pseudocode is executed using the “Words” dataset. Assume that vCount(X) returns the number of vowels in X.Word. What will B represent at the end of the execution?

- AAverage letter count of words in the dataset
- BSum of words that contain at least two vowels
- CAverage letter count of words containing at least two vowels in the dataset
- DAverage letter count of words containing at most two vowels in the dataset
- Q18MCQ3 Marks·Choose one option
Consider the "Scores" dataset. What will C represent at the end of the execution?

- ASum of Total marks of students whose Physics marks are less than the average Physics marks
- BSum of Total marks of students whose Physics marks are more than the average Physics marks
- CSum of Physics marks of students whose Physics marks are more than the average Physics marks
- DSum of Physics marks of students whose Physics marks are less than the average Physics marks
- Q19MCQ3 Marks·Choose one option
The following pseudocode is executed using the “Words” dataset. What will A represent at the end of the execution?

- ANumber of words with at most two vowels
- BNumber of words with at least three vowels
- CNumber of words with at least two vowels
- DNumber of words with exactly two vowels
- Q20MSQ4 Marks·Choose all correct options
Consider the Player dataset given below that keeps track of the runs scored by each player in the test matches held.

- AGoldStriker
- BSilverStriker
- CBronzeStriker
- DSilverStriker and BronzeStriker
- Q21MSQ4 Marks·Choose all correct options
The following pseudocode is executed using the “Scores” dataset. At the end of the execution, A captures the lowest Chemistry marks scored by a male student from Vellore. Choose the correct code fragment(s) to complete the pseudocode. It is a Multiple Select Question.

- A

- B

- C

- D

- A
- Q22MSQ4 Marks·Choose all correct options
The following pseudocode is executed using the “Olympics” dataset. At the end of the execution, A stores the number of players who are either female from India or have won the match hosted by Australia in the year 2006 or both. But the pseudocode may have mistakes. Identify all such mistakes (if any). Assume that all statements not listed in the options below are free of errors. It is a Multiple Select Question .

- ALine 1: Incorrect initialization of A
- BLine 5: Condition to update C is incorrect
- CLine 8: Condition to update D is incorrect
- DNo error in the code
- Q23MSQ5 Marks·Choose all correct options

- A

- B

- C

- D

- A
- Q24NAT4 Marks·Write the number
Your answer: - Q25NAT3 Marks·Write the number
Let the value of X be "aeroplane". What is the value of A at the end of the execution of the pseudocode ?
Your answer: Read the passage below, then answer Q26–Q27

Based on the above data, answer the given subquestions.
Q26MCQ3 Marks·Choose one optionLet unit be the number of units consumed by the consumer and cost be the amount of the bill to be paid. Choose the correct implementation to compute the cost.
- A

- B

- C

- D

- A
- Q27MCQ3 Marks·Choose one option

- A

- B

- C

- D

- A
- Q28MSQ5 Marks·Choose all correct options
The following pseudocode is executed using the "Scores" dataset. At the end of the execution, count captures the number of pairs of students who are of the same gender or are from the same city but not both. Choose the correct code fragment to complete the pseudocode. It is a Multiple Select Question.

- A

- B

- C

- D

- A