Quiz Space

Computational Thinking · Quiz 1 · 26 Oct 2025 · September 2025 term · Set 4

Question 6: The following pseudocode is executed using the “Library” …

Question 6

+4 marksOne correct option

The following pseudocode is executed using the “Library” dataset. At the end of the execution, A captures the number of pairs of books which are published in the same genre and in the same year but in different languages. 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.

The following pseudocode is executed using the “Library” dataset. At the end of the execution, A captures the number of pairs of books which are published in the same genre and in the same year but in different languages. 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.

The following pseudocode is executed using the “Library” dataset. At the end of the execution, A
captures the number of
  1. A

    Line 9: B is updated with wrong value

  2. B

    Line 12: C is updated with wrong value

  3. C

    Line 15: D is updated in wrong place

  4. D

    No errors

Show answer

Correct answer

  • D

    No errors

Question 6 of 14 in the IIT Madras BS Computational Thinking (Computational Thinking (CT)) Quiz 1 paper sat on 26 Oct 2025, in the September 2025 term (IIT M IMPROVEMENT AN EXAM QIO2 26 Oct). It carries 4 marks.

More questions from this paper

  1. Q1THIS IS QUESTION PAPER FOR THE SUBJECT "FOUNDATION LEVEL : COMPUTATIONAL THINKING (COMPUTER BASED EXAM)" ARE YOU SURE Y…
  2. Q2Figure question
  3. Q3Figure question
  4. Q4Figure question
  5. Q5Figure question
  6. Q7Figure question
  7. Q8Figure question
  8. Q9Figure question
  9. Q10Based on the "Library" dataset, the Procedure biGenre(A) returns True if the author A has written more Fiction books th…
  10. Q11Figure question
  11. Q12Figure question
  12. Q13Figure question
  13. Q14Figure question