Quiz Space

May 2024 term · Computational Thinking · BSCS1001

Computational Thinking Quiz 2: 4 August 2024, Set 1 (May 2024 term)

The IIT Madras BS Computational Thinking (Computational Thinking (CT)) Quiz 2 paper sat on 4 Aug 2024, in the May 2024 term, set 1: 15 questions for 53 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
15
Marks
53
Duration
120 min
MCQ
9
MSQ
4
Written
2

Updated

Official paper: 2024 Aug04: IIT M AN EXAM QDF4 · No negative marking.

Question 1

+1 markOne correct option

THIS IS QUESTION PAPER FOR THE SUBJECT "FOUNDATION LEVEL : COMPUTATIONAL THINKING (COMPUTER BASED EXAM)" ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT? CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN. (IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)

  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
  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

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

    [10, 20, 30, 40, 50]

  2. B

    [10, 'Raj', 5.0, 20, 'Ramesh', 3.5, 30, 'Rakesh', 2.0, 40, 'Raj',1.5, 50, 'Ram', 4.0]

  3. C

    ['Raj', 'Ramesh', 'Rakesh', 'Raj', 'Ram']

  4. D

    [5.0, 3.5, 2.0, 1.5, 4.0]

Show answer

Correct answer

  • A

    [10, 20, 30, 40, 50]

Question 4

+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 5

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

    B = [18, 24, 21]

  2. B

    B = [19, 13]

  3. C

    B = [18, 19, 24, 21, 13]

  4. D

    B = []

Show answer

Correct answer

  • A

    B = [18, 24, 21]

Question 6

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

    It will contain all the elements of L2 that are not present in L1

  2. B

    It will contain all the elements of L1 that are not present in L2

  3. C

    It will contain all the elements common to L1 and L2

  4. D

    It will contain the elements present in L1 or L2 but not both

Show answer

Correct answer

  • B

    It will contain all the elements of L1 that are not present in L2

Question 7

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

    Dictionary with authors as keys mapped to the year of publication of theirlatest book

  2. B

    Dictionary with authors as keys mapped to the year of publication of their firstbook

  3. C

    Dictionary with authors as keys mapped to the year of publication of theirsecond book

  4. D

    Dictionary with authors as keys mapped to the year of publication of theirsecond latest book

Show answer

Correct answer

  • B

    Dictionary with authors as keys mapped to the year of publication of their firstbook

Question 8

+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
Show answer

Correct answers

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

Question 9

+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
Show answer

Correct answers

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

Question 10

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

Select all that apply.

  1. A

    In procedure UpdateMedalCounts, if the sport is in Q, the medal count forthat sport is initialized to 1.

  2. B

    B represents the maximum number of gold medals among all the sports.

  3. C

    Procedure doSomething iterates over each sport in the dictionary R andchecks if the number of gold medals for the current sport is greater than the current maximum.

  4. D

    B represents the total number of gold medals in all the sports.

Show answer

Correct answers

  • B

    B represents the maximum number of gold medals among all the sports.

  • C

    Procedure doSomething iterates over each sport in the dictionary R andchecks if the number of gold medals for the current sport is greater than the current maximum.

Question 11

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

Select all that apply.

  1. A

    Line 4: Incorrect conditional statement

  2. B

    Line 10: A must be initialize to {}

  3. C

    Line 11: Incorrect conditional statement

  4. D

    No mistakes

Show answer

Correct answers

  • B

    Line 10: A must be initialize to {}

  • C

    Line 11: Incorrect conditional statement

Question 12

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

A written answer, not marked automatically.

Question 13

+4 marksOne correct option

Based on the above data, answer the given subquestions.

Based on the above data, answer the given subquestions.

If A = [4, 3, 1, 3, 4, 5, 1, 2, 7], then what will the value of B be at the end of the execution of the pseudocode?

  1. A

    [3, 1, 3, 5, 1, 7]

  2. B

    [3, 1, 5, 7]

  3. C

    [4, 2]

  4. D

    [4, 4, 2]

Show answer

Correct answer

  • A

    [3, 1, 3, 5, 1, 7]

Question 14

+4 marksOne correct option

Based on the above data, answer the given subquestions.

Based on the above data, answer the given subquestions.

If A = [4, 3, 2, 4, 3, 5, 6, 7, 8, 6, 2] , then what will the value of B be at the end of the execution of the pseudocode?

  1. A

    [4, 2, 4, 6, 8, 6, 2]

  2. B

    [3, 3, 5, 7]

  3. C

    [3, 5, 7]

  4. D

    [4, 2, 6, 8]

Show answer

Correct answer

  • D

    [4, 2, 6, 8]

Question 15

+1 markWritten answer

Based on the above data, answer the given subquestions.

Based on the above data, answer the given subquestions.
Show answer

A written answer, not marked automatically.