Question 1
Useful Data has been mentioned above.
This data attachment is just for a reference & not for an evaluation.

The IIT Madras BS Computational Thinking (Computational Thinking (CT)) Quiz 1 paper sat on 15 Mar 2026, in the January 2026 term: 11 questions for 51 marks in 120 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.
Useful Data has been mentioned above.
This data attachment is just for a reference & not for an evaluation.
Correct answer
Useful Data has been mentioned above.
The following procedure is executed using the Scores dataset.
What does the procedure Mystery("M") compute?
The average Physics score of all students
The average Physics score of male students
The total score of male students
The total Physics score of male students
Correct answer
The average Physics score of male students
The following pseudocode is executed using the Scores table. At the end of the execution, the variable CountBA captures the number of students with total marks less than average total marks and below average in exactly one subject. Assume that the variable AvgT holds the value of average total marks. Similarly, the variables AvgP, AvgC and AvgM hold the value of average marks of Physics, Chemistry and Mathematics respectively. Choose the correct choice to complete the pseudocode.




Correct answer

Based on the Scores dataset, the Procedure highTotal(S) returns True if student name 'S' has a TOTAL score greater than 180. Choose the correct pseudocode for Procedure highTotal(S). (Consider all students have distinct names)




Correct answer

What does the given pseudocode achieve using the Words table?
Bins the rows in the Words table into four tables based on word length
Bins the rows in the Words table into four tables based on whether the word has more vowels or more consonants
Bins the rows in the Words table into four tables based on the ratio of vowels to total letters
Bins the rows in the Words table into four tables based on whether the word contains only vowels
Correct answer
Bins the rows in the Words table into four tables based on the ratio of vowels to total letters
The following pseudocode is executed using the Shopping bills dataset to find the number of bills with one of the top three total bill amounts. Choose the correct code block to complete the pseudocode.




Correct answer

The following procedure is executed using the Shopping Bills dataset. Choose all the correct options given below.
The procedure ignores all bills from shops other than SV Stores
Bills from SV Stores with amount ≥ 400 do not affect either or
The value stored in depends on the order of cards in Pile 1
represents the number of SV Stores bills whose total amount is strictly less than 400
At the end of execution, (sum/count) will give the average total bill amount of all bills from SV Stores
Correct answers
The procedure ignores all bills from shops other than SV Stores
Bills from SV Stores with amount ≥ 400 do not affect either or
represents the number of SV Stores bills whose total amount is strictly less than 400
The following procedure finds the highest amount of bill generated at Sun General from the Shopping Bills dataset. But the programmer may have made mistakes in one or more steps. Identify all such steps (if any) Step 1. Arrange all cards in a single pile called Pile 1 Step 2. Maintain a variable max and initialize it to 0 Step 3. If Pile 1 is empty then stop the iteration Step 4. Read the top card in Pile 1 Step 5. If the shop name is Sun General and max > total bill amount then store total bill amount in max Step 6. Move the current card to another pile called Pile 2 and repeat from step 3
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
No mistake
Correct answer
Step 5
Consider the following pseudocode operating on Scores dataset.
Which of the following statements are true?
The algorithm counts the number of ordered pairs of students having the same and .
Each pair of students with the same and is counted exactly once.
The algorithm avoids comparing a student with itself.
The final value of depends on the initial ordering of rows in Table1.
Correct answers
Each pair of students with the same and is counted exactly once.
The algorithm avoids comparing a student with itself.
Consider the Olympics dataset. The following pseudocode is executed:
Which of the following must be true after execution?
silver_count equals the number of silver medals awarded to male athletes during Olympics hosted by USA.
If gender_check equals silver_count, then all silver medal winners during Olympics hosted by USA were male
silver_count equals the number of silver medals awarded to athletes during Olympics hosted by USA.
silver_count counts the total number of silver medals won by athletes who are from USA.
Correct answers
silver_count equals the number of silver medals awarded to male athletes during Olympics hosted by USA.
silver_count equals the number of silver medals awarded to athletes during Olympics hosted by USA.
The following pseudocode is executed using a dataset similar to the "Words" dataset, based on the paragraph below. "Patience and persistence often unlock hidden potential."
Ignore case while comparing letters. What will be the value of Score at the end of execution?
A written answer, not marked automatically.