Quiz Space

Computational Thinking · Quiz 1 · 19 Jul 2026 · May 2026 term

Question 10: Statement The following pseudocode is executed using the…

Question 10

+4 marksOne correct option

Statement The following pseudocode is executed using the “Olympics” dataset. Procedure doSomething accepts a table where all rows belong to the same player. Assume that the player has won at least two medals and only one medal in any year. At the end of the execution, if (B - A) represents year the gap between first and second medals won by a player then, choose the correct code fragment to complete the pseudocode.

Statement  The following pseudocode is executed using the “Olympics” dataset. Procedure doSomething accepts a table wher
  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

  • A
    Figure from the original question paper

Question 10 of 13 in the IIT Madras BS Computational Thinking (Computational Thinking (CT)) Quiz 1 paper sat on 19 Jul 2026, in the May 2026 term (CT 16 Jul 26). It carries 4 marks.

More questions from this paper

  1. Q1Figure question
  2. Q2The following pseudocode is executed using the Word dataset. What will count represent at the end of the execution?
  3. Q3The following pseudocode is executed on the "Library" dataset. What will count represent after the pseudocode below is …
  4. Q4Statement The following pseudocode is executed using the "Words" dataset. At the end of the execution, count stores the…
  5. Q5Match the following expressions in the Column 1 with the appropriate values in Column 2.
  6. Q6The following pseudocode is executed using the “Scores” dataset. Which of the following statements is correct?
  7. Q7The following pseudocode is executed using the Shopping Bills dataset. At the end of the execution, A captures the lowe…
  8. Q8Statement The following pseudocode is executed using a dataset similar to the "Words" dataset, based on the following p…
  9. Q9Statement The following pseudocode is executed using the “Scores” dataset. What will A represent at the end of the exec…
  10. Q11Statement The following procedure is executed using "Words" dataset. What will A represent at the end of the execution?…
  11. Q12Statement A pair of words is said to be special if it fulfills following conditions: The number of vowels are the same …
  12. Q13Statement A student proposed a hypothesis that fewer students are born in the first half of the year than the second ha…