Quiz Space

September 2022 term · Computational Thinking · BSCS1001

Computational Thinking (CT) Quiz 2: 20 November 2022, Set 3 (September 2022 term)

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.

Questions
20
Marks
54
Duration
120 min
MCQ
13
MSQ
2
Written
5

Updated

Official paper: IIT M FOUNDATION AN4 EXAM QPF5 20 Nov 2022 · No negative marking.

Question 1

+1 markOne correct option
Figure from the original question paper
  1. A

    Yes

  2. B

    No

Show answer

Correct answer

  • A

    Yes

Question 2

+1 markOne correct option
Figure from the original question paper
Figure from the original question paper
Figure from the original question paper
  1. A

    Useful Data has been mentioned above.

  2. B

    This data attachment is just for a reference & not for an evaluation.

Show answer

Correct answer

  • A

    Useful Data has been mentioned above.

Question 3

+1 markOne correct option
Figure from the original question paper
  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 answer

  • B
    Figure from the original question paper

Question 4

+1 markOne correct option
Figure from the original question paper
  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 answer

  • C
    Figure from the original question paper

Question 5

+2 marksOne correct option
Figure from the original question paper
  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 answer

  • A
    Figure from the original question paper

Question 6

+3 marksOne correct option
Figure from the original question paper
  1. A

    Number of trains for which stn is a starting station

  2. B

    Number of trains for which stn is an ending station

  3. C

    Number of trains for which stn is either a starting or an ending station

  4. D

    Number of trains for which stn is neither a starting nor an ending station

Show answer

Correct answer

  • D

    Number of trains for which stn is neither a starting nor an ending station

Question 7

+3 marksOne correct option
Figure from the original question paper
  1. A

    Each key of the dictionary D should be mapped to a positive integer.

  2. B

    Each key of the dictionary D should be mapped to a dictionary with each keymapped to a positive integer.

  3. C

    Each key of the dictionary D should be mapped to a non-empty list of integers.

  4. D

    Each key of the dictionary D should be mapped to a non-empty list of positiveintegers.

Show answer

Correct answer

  • D

    Each key of the dictionary D should be mapped to a non-empty list of positiveintegers.

Question 8

+3 marksOne correct option
Figure from the original question paper
  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 answer

  • A
    Figure from the original question paper

Question 9

+4 marksOne correct option
Figure from the original question paper
  1. A

    1

  2. B

    2

  3. C

    3

  4. D

    4

Show answer

Correct answer

  • B

    2

Question 10

+4 marksOne correct option
Figure from the original question paper
  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 answer

  • A
    Figure from the original question paper

Question 11

+3 marksOne or more correct options
Figure from the original question paper

Select all that apply.

  1. A

    The first element of both the lists, cumuList and aList, will be same.

  2. B

    Number of elements in cumuList will be one lesser than that of aList

  3. C

    cumuList is a list of numbers in increasing order.

  4. D

    Number of elements in both lists, cumuList and aList, will be same

Show answer

Correct answers

  • A

    The first element of both the lists, cumuList and aList, will be same.

  • D

    Number of elements in both lists, cumuList and aList, will be same

Question 12

+4 marksOne correct option
Figure from the original question paper
  1. A

    Line 2: Incorrect initialization of repeatPlayers

  2. B

    Line 4: Incorrect initialization of tempDict

  3. C

    Line 8: Incorrect conditional statement to update repeatPlayers

  4. D

    No mistakes

Show answer

Correct answer

  • C

    Line 8: Incorrect conditional statement to update repeatPlayers

Question 13

+5 marksOne or more correct options
Figure from the original question paper

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
  5. E
    Figure from the original question paper
Show answer

Correct answers

  • B
    Figure from the original question paper
  • D
    Figure from the original question paper

Question 14

+3 marksOne correct option
Figure from the original question paper
Figure from the original question paper
  1. A

    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.

  2. B

    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.

  3. C

    nSub is a dictionary with sequence numbers of students mapped to thenumber of subjects in which the student has scored more than 80 marks.

  4. D

    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.

Show answer

Correct answer

  • A

    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.

Question 15

+4 marksOne correct option
Figure from the original question paper
Figure from the original question paper
  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 answer

  • B
    Figure from the original question paper

Question 16

+3 marksWritten answer
Figure from the original question paper
Figure from the original question paper
Show answer

A written answer, not marked automatically.

Question 17

+3 marksWritten answer
Figure from the original question paper
Figure from the original question paper
Show answer

A written answer, not marked automatically.

Question 18

+4 marksWritten answer
Figure from the original question paper
Figure from the original question paper
Show answer

A written answer, not marked automatically.

Question 19

+1 markWritten answer
Figure from the original question paper
Show answer

A written answer, not marked automatically.

Question 20

+1 markWritten answer
Figure from the original question paper
Show answer

A written answer, not marked automatically.