Quiz Space

Computational Thinking · Quiz 2 · 12 Apr 2026 · January 2026 term

Question 7: We have a dictionary Registration where the keys are stud…

Question 7

+4 marksOne or more correct options

We have a dictionary Registration where the keys are student names and the values are lists of courses they have registered for. We want to create a new dictionary CourseRoll where the keys are course names and the values are lists of students registered for each course. For example, if Registration is:

Identify the correct implementation(s).

We have a dictionary Registration where the keys are student names and the values are lists of courses they have registe

Select all that apply.

  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 answers

  • A
    Figure from the original question paper
  • C
    Figure from the original question paper

Question 7 of 14 in the IIT Madras BS Computational Thinking (Computational Thinking (CT)) Quiz 2 paper sat on 12 Apr 2026, in the January 2026 term (CT 06 Apr 26). It carries 4 marks.

More questions from this paper

  1. Q1Figure question
  2. Q2What will be the value of outList at the end of execution of the given pseudocode?
  3. Q3The following pseudocode is executed using the "Words" dataset and explode(X) returns the list of letters in the word X…
  4. Q4The following pseudocode is executed using the "Scores" dataset. What will the values of A and B represent at the end o…
  5. Q5Use the procedure doSomething given below. The following pseudocode is executed using the Words dataset and the procedu…
  6. Q6The following pseudocode is executed on the "Shopping Bills" dataset. What will Val represent at the end of the executi…
  7. Q8Two players play a game with dice. The results are stored in dieRolls, a list of pairs where each pair represents a rol…
  8. Q9Let SortedL be a list of integers sorted in ascending order. The procedure deleteVal(SortedL, X) is supposed to delete …
  9. Q10Let Z be a row in the Words table such that Z.Word = "reluctant". What will be the value of alphaDict['t'] at the end o…
  10. Q11The following procedure is executed on dictionary D: D = { 'A': 10, 'B': 25, 'C': 30, 'D': 40, 'E': 18 } What is the fi…
  11. Q12The following pseudocode is executed using the "Olympics" dataset. TeamDict is a dictionary accumulating player names f…
  12. Q13The following pseudocode is executed using the "Olympics" dataset. TeamDict is a dictionary accumulating player names f…
  13. Q14The following pseudocode is executed using the "Olympics" dataset. TeamDict is a dictionary accumulating player names f…