uiz Space

January 2026 term · Computational Thinking · BSCS1001

Computational Thinking Quiz 1: 15 March 2026 (January 2026 term)

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.

Questions
11
Marks
51
Duration
120 min
MCQ
7
MSQ
3
Written
1

Updated

Official paper: CT 15 Mar 26 · No negative marking.

Question 1

+1 markOne correct option
Figure from the original question paper
Figure from the original question paper
  1. A

    Useful Data has been mentioned above.

  2. B

    This data attachment is just for a reference & not for an evaluation.

Show answer

Correct answer

  • A

    Useful Data has been mentioned above.

Question 2

+4 marksOne correct option

The following procedure is executed using the Scores dataset.

What does the procedure Mystery("M") compute?

The following procedure is executed using the Scores dataset.
  1. A

    The average Physics score of all students

  2. B

    The average Physics score of male students

  3. C

    The total score of male students

  4. D

    The total Physics score of male students

Show answer

Correct answer

  • B

    The average Physics score of male students

Question 3

+4 marksOne correct option

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.

The following pseudocode is executed using the Scores table. At the end of the execution, the variable CountBA captures
  1. A
    Figure from the original question paper
  2. B
    Figure from the original question paper
  3. C
    Figure from the original question paper
  4. D
    Figure from the original question paper
Show answer

Correct answer

  • D
    Figure from the original question paper

Question 4

+6 marksOne correct option

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)

  1. A
    Figure from the original question paper
  2. B
    Figure from the original question paper
  3. C
    Figure from the original question paper
  4. D
    Figure from the original question paper
Show answer

Correct answer

  • B
    Figure from the original question paper

Question 5

+6 marksOne correct option

What does the given pseudocode achieve using the Words table?

What does the given pseudocode achieve using the Words table?
  1. A

    Bins the rows in the Words table into four tables based on word length

  2. B

    Bins the rows in the Words table into four tables based on whether the word has more vowels or more consonants

  3. C

    Bins the rows in the Words table into four tables based on the ratio of vowels to total letters

  4. D

    Bins the rows in the Words table into four tables based on whether the word contains only vowels

Show answer

Correct answer

  • C

    Bins the rows in the Words table into four tables based on the ratio of vowels to total letters

Question 6

+6 marksOne correct option

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.

The following pseudocode is executed using the Shopping bills dataset to find the number of bills with one of the top th
  1. A
    Figure from the original question paper
  2. B
    Figure from the original question paper
  3. C
    Figure from the original question paper
  4. D
    Figure from the original question paper
Show answer

Correct answer

  • D
    Figure from the original question paper

Question 7

+4 marksOne or more correct options

The following procedure is executed using the Shopping Bills dataset. Choose all the correct options given below.

The following procedure is executed using the Shopping Bills dataset. Choose all the correct options given below.

Select all that apply.

  1. A

    The procedure ignores all bills from shops other than SV Stores

  2. B

    Bills from SV Stores with amount ≥ 400 do not affect either or

  3. C

    The value stored in depends on the order of cards in Pile 1

  4. D

    represents the number of SV Stores bills whose total amount is strictly less than 400

  5. E

    At the end of execution, (sum/count) will give the average total bill amount of all bills from SV Stores

Show answer

Correct answers

  • A

    The procedure ignores all bills from shops other than SV Stores

  • B

    Bills from SV Stores with amount ≥ 400 do not affect either or

  • D

    represents the number of SV Stores bills whose total amount is strictly less than 400

Question 8

+4 marksOne correct option

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

  1. A

    Step 1

  2. B

    Step 2

  3. C

    Step 3

  4. D

    Step 4

  5. E

    Step 5

  6. F

    Step 6

  7. G

    No mistake

Show answer

Correct answer

  • E

    Step 5

Question 9

+6 marksOne or more correct options

Consider the following pseudocode operating on Scores dataset.

Which of the following statements are true?

Consider the following pseudocode operating on Scores dataset.

Select all that apply.

  1. A

    The algorithm counts the number of ordered pairs of students having the same and .

  2. B

    Each pair of students with the same and is counted exactly once.

  3. C

    The algorithm avoids comparing a student with itself.

  4. D

    The final value of depends on the initial ordering of rows in Table1.

Show answer

Correct answers

  • B

    Each pair of students with the same and is counted exactly once.

  • C

    The algorithm avoids comparing a student with itself.

Question 10

+5 marksOne or more correct options

Consider the Olympics dataset. The following pseudocode is executed:

Which of the following must be true after execution?

Consider the Olympics dataset. The following pseudocode is executed:

Select all that apply.

  1. A

    silver_count equals the number of silver medals awarded to male athletes during Olympics hosted by USA.

  2. B

    If gender_check equals silver_count, then all silver medal winners during Olympics hosted by USA were male

  3. C

    silver_count equals the number of silver medals awarded to athletes during Olympics hosted by USA.

  4. D

    silver_count counts the total number of silver medals won by athletes who are from USA.

Show answer

Correct answers

  • A

    silver_count equals the number of silver medals awarded to male athletes during Olympics hosted by USA.

  • C

    silver_count equals the number of silver medals awarded to athletes during Olympics hosted by USA.

Question 11

+5 marksWritten answer

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?

The following pseudocode is executed using a dataset similar to the "Words" dataset, based on the paragraph below.  "Pat
Show answer

A written answer, not marked automatically.