Quiz Space

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

Question 7: The following pseudocode is executed using the Shopping B…

Question 7

+5 marksOne or more correct options

The following pseudocode is executed using the Shopping Bills dataset. At the end of the execution, A captures the lowest price across all items purchased from Big Bazaar. But the pseudocode may have mistakes in one or more lines. Identify all such lines (if any). Assume that all statements not listed in the options below are free of errors.

The following pseudocode is executed using the Shopping Bills dataset. At the end of the execution, A captures the lowes

Select all that apply.

  1. A

    Line 1: Incorrect initialization of A

  2. B

    Line 6: Incorrect conditional statement

  3. C

    Line 14: Incorrect initialization of minPrice

  4. D

    Line 17: Incorrect conditional statement

Show answer

Correct answers

  • B

    Line 6: Incorrect conditional statement

  • C

    Line 14: Incorrect initialization of minPrice

Question 7 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 5 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. Q8Statement The following pseudocode is executed using a dataset similar to the "Words" dataset, based on the following p…
  8. Q9Statement The following pseudocode is executed using the “Scores” dataset. What will A represent at the end of the exec…
  9. Q10Statement The following pseudocode is executed using the “Olympics” dataset. Procedure doSomething accepts a table wher…
  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…