Quiz Space

Computational Thinking Quiz 2: 23 November 2025 (September 2025 term)

Question 1

+4 marksOne correct option

Consider the procedure given below.

text
1 Procedure eliminate(L1, L2)
2 L3 = [], Found = False
3 foreach i in L1{
4 foreach j in L2{
5 if(i == j){
6 Found == True
7 }
8 }
9 if(not Found){
10 L3 = L3 ++ [i]
11 }
12 Found = False
13 }
14 return(L3)
15 End eliminate

If L1 and L2 are two lists, and L = eliminate(L1, L2), choose the correct option.

  1. A

    L contains all the elements of L2 that are not present in L1

  2. B

    L contains all the elements of L1 that are not present in L2

  3. C

    L contains all the elements common to L1 and L2

  4. D

    L contains the unique elements present in L1 or L2

Question 2

+4 marksOne correct option

Consider the following pseudocode:

text
1 aList = [2, 6, 7, 2, 8, 7, 6, 2, 3]
2 bDict = {}
3 bList = []
4 foreach a in aList{
5 if(not isKey(bDict, a)){
6 bDict[a] = True
7 bList = [a] ++ bList
8 }
9 }

At the end of execution of the pseudocode, which of the following is correct?

  1. A

    bList = [2, 6, 7, 8, 3]

  2. B

    bList = [3, 8, 7, 6, 2]

  3. C

    bList = [28]

  4. D

    bList = [2, 6, 7, 2, 8, 7, 6, 2, 3]

Question 3

+4 marksOne or more correct options

The following pseudocode is executed using "Scores" dataset. Let M, P, and C be the lists of the sequence numbers of the students who have scored more than 75 marks in Mathematics, Physics, and Chemistry respectively. At the end of the execution, dict stores a dictionary with the sequence number of student mapped to the number of subjects in which the student has scored more than 75 marks. Choose the correct implementation(s) of nSub.

Select all that apply.

  1. A
  2. B
  3. C
  4. D

9 more questions in this paper

Sign in with Google — it is free — to see every question with its answer and explanation, practise it in learning mode, or take it as a timed mock test.

More on the Computational Thinking (CT) Quiz 2 23 Nov 2025 paper

The IIT Madras BS Computational Thinking (Computational Thinking (CT)) Quiz 2 paper sat on 23 Nov 2025, in the September 2025 term: 12 questions for 50 marks in 120 minutes. The first 3 questions are below. Sign in with Google — it is free — to see the whole paper with its answers and explanations, in learning mode or as a timed mock test.

FeatureComputational Thinking (CT) Quiz 2 23 Nov 2025 at a glance
TermSeptember 2025 term
SubjectComputational Thinking
Course codeBSCS1001
Questions12
Marks50
Duration120 min
MCQ7
MSQ4
Numerical1
Official paperIIT M DIPLOMA AN EXAM QDD2 23 Nov 2025 NEW
Negative markingNo negative marking.
Updated

Same Quiz 2, other subjects

More Computational Thinking (CT)