Indian Institute of Technology Madras
BS Degree Programme · Examination & Study Paper
BSCS1001 · Computational Thinking
Qualifier · May 2023
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

Q1MCQ3 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
- Q2MCQ3 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
- Q3MCQ3 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
- Q4MCQ3 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
- Q5MCQ3 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
- Q6MSQ4 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
- Q7MSQ4 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
- Q8MSQ4 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
- Q9MSQ5 Marks·Choose all correct options

- A

- B

- C

- D

- A
- Q10NAT4 Marks·Write the number
Your answer: - Q11NAT3 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 Q12–Q13

Based on the above data, answer the given subquestions.
Q12MCQ3 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
- Q13MCQ3 Marks·Choose one option

- A

- B

- C

- D

- A
- Q14MSQ5 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