Question 1
Yes
No
The IIT Madras BS Computational Thinking (Computational Thinking (CT)) Quiz 2 paper sat on 20 Nov 2022, in the September 2022 term, set 3: 20 questions for 54 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.
Yes
No
Correct answer
Yes
Useful Data has been mentioned above.
This data attachment is just for a reference & not for an evaluation.
Correct answer
Useful Data has been mentioned above.




Correct answer





Correct answer





Correct answer

Number of trains for which stn is a starting station
Number of trains for which stn is an ending station
Number of trains for which stn is either a starting or an ending station
Number of trains for which stn is neither a starting nor an ending station
Correct answer
Number of trains for which stn is neither a starting nor an ending station
Each key of the dictionary D should be mapped to a positive integer.
Each key of the dictionary D should be mapped to a dictionary with each keymapped to a positive integer.
Each key of the dictionary D should be mapped to a non-empty list of integers.
Each key of the dictionary D should be mapped to a non-empty list of positiveintegers.
Correct answer
Each key of the dictionary D should be mapped to a non-empty list of positiveintegers.




Correct answer

1
2
3
4
Correct answer
2




Correct answer

The first element of both the lists, cumuList and aList, will be same.
Number of elements in cumuList will be one lesser than that of aList
cumuList is a list of numbers in increasing order.
Number of elements in both lists, cumuList and aList, will be same
Correct answers
The first element of both the lists, cumuList and aList, will be same.
Number of elements in both lists, cumuList and aList, will be same
Line 2: Incorrect initialization of repeatPlayers
Line 4: Incorrect initialization of tempDict
Line 8: Incorrect conditional statement to update repeatPlayers
No mistakes
Correct answer
Line 8: Incorrect conditional statement to update repeatPlayers





Correct answers


nSub is a procedure which accepts the sequence number of a student andreturns True if the student has scored more than 80 marks at least in two subjects otherwisereturns False.
nSub is a procedure which accepts the sequence number of a student andreturns the number of subjects in which the student has scored more than 80 marks.
nSub is a dictionary with sequence numbers of students mapped to thenumber of subjects in which the student has scored more than 80 marks.
nSub is a dictionary with sequence numbers of students mapped to True if thestudent has scored more than 80 marks at least in two subjects otherwise mapped to False.
Correct answer
nSub is a procedure which accepts the sequence number of a student andreturns True if the student has scored more than 80 marks at least in two subjects otherwisereturns False.




Correct answer

A written answer, not marked automatically.
A written answer, not marked automatically.
A written answer, not marked automatically.
A written answer, not marked automatically.
A written answer, not marked automatically.