Quiz Space

May 2022 term · Computational Thinking · BSCS1001

Computational Thinking Quiz 2: 10 July 2022, Set 2 (May 2022 term)

The IIT Madras BS Computational Thinking (Computational Thinking (CT)) Quiz 2 paper sat on 10 Jul 2022, in the May 2022 term, set 2: 21 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
21
Marks
54
Duration
120 min
MCQ
17
MSQ
1
Written
3

Updated

Official paper: IIT M FOUNDATION QUIZ2 EXAM QPC1 10 July 2022 IBA · 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
  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

    TRUE

  2. B

    FALSE

Show answer

Correct answer

  • B

    FALSE

Question 4

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

    TRUE

  2. B

    FALSE

Show answer

Correct answer

  • A

    TRUE

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

Correct answer

  • C
    Figure from the original question paper

Question 6

+2 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
    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 8

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

    List of nouns that appear immediately after an adjective

  2. B

    List of adjectives that appear immediately after a noun

  3. C

    List of nouns that appear immediately before an adjective

  4. D

    List of adjectives that appear immediately before a noun

Show answer

Correct answer

  • A

    List of nouns that appear immediately after an adjective

Question 9

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

+2 marksOne or more correct options

Let D be a dictionary, then which of the following is(are) a valid value(s) of D? It is a Multiple Select Question (MSQ).

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
  • D
    Figure from the original question paper

Question 12

+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

  • D
    Figure from the original question paper

Question 13

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

    Elements of Loi are in ascending order

  2. B

    Elements of Loi are in descending order

  3. C

    Elements of Loi are either in ascending or in descending order

  4. D

    Elements of Loi are neither in ascending nor in descending order

Show answer

Correct answer

  • D

    Elements of Loi are neither in ascending nor in descending order

Question 14

+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

  • D
    Figure from the original question paper

Question 15

+3 marksWritten answer
Figure from the original question paper

Let Z.Word be "honesty". What will be the value of alphaDict['e'] at the end of the execution of the following pseudocode using the procedure mentioned in the main question?

Let Z.Word be "honesty". What will be the value of alphaDict['e'] at the end of the execution of the following pseudocode using the procedure mentioned in the main question? NOTE: Enter your answer to the nearest integer.

Let Z.Word be "honesty". What will be the value of alphaDict['e'] at the end of the execution of the following pseudocod
Show answer

A written answer, not marked automatically.

Question 16

+3 marksOne correct option
Figure from the original question paper

The following pseudocode is executed using the "Words" dataset and the procedure updateDict mentioned in the main data.

The following pseudocode is executed using the "Words" dataset and the procedure updateDict mentioned in the main data. At the end of the execution of above pseudocode, let 'a' be a letter from the "Words" dataset, then D['a'] will be

The following pseudocode is executed using the "Words" dataset and the procedure updateDict mentioned in the main data.
  1. A

    The frequency count of 'a' in the dataset.

  2. B

    Number of words in which 'a' is present.

  3. C

    Number of sentences in which 'a' is present.

  4. D

    List of words in which 'a' is present.

Show answer

Correct answer

  • A

    The frequency count of 'a' in the dataset.

Question 17

+3 marksOne correct option

The following pseudocode is executed using the "Scores" dataset. At the end of the execution, medalList should store the list of sequence numbers of the students who have scored at least 200 total marks and have scored more than 80 at least in two subjects. Answer the given subquestions based on the pseudocode.

The following pseudocode is executed using the "Scores" dataset. At the end of the execution, medalList should store the list of sequence numbers of the students who have scored at least 200 total marks and have scored more than 80 at least in two subjects. Answer the given subquestions based on the pseudocode.

The following pseudocode is executed using the "Scores" dataset. At the end of the execution, medalList should store the

Which of the following statement(s) is(are) true about s200 based on the given pseudocode? It is a Multiple Select Question (MSQ).

  1. A

    s200 is a procedure which accepts the sequence number of a student andreturns True if the student has scored at least 200 total marks otherwise returns False.

  2. B

    s200 is a dictionary with sequence numbers of students mapped to True if thestudent has scored at least 200 total marks otherwise mapped to False.

  3. C

    s200 is a dictionary with sequence numbers of students mapped to False if thestudent has scored at least 200 total marks otherwise mapped to True.

  4. D

    s200 is a procedure which accepts the sequence number of a student andreturns False if the student has scored at least 200 total marks otherwise returns True.

Show answer

Correct answer

  • B

    s200 is a dictionary with sequence numbers of students mapped to True if thestudent has scored at least 200 total marks otherwise mapped to False.

Question 18

+3 marksOne correct option

The following pseudocode is executed using the "Scores" dataset. At the end of the execution, medalList should store the list of sequence numbers of the students who have scored at least 200 total marks and have scored more than 80 at least in two subjects. Answer the given subquestions based on the pseudocode.

The following pseudocode is executed using the "Scores" dataset. At the end of the execution, medalList should store the list of sequence numbers of the students who have scored at least 200 total marks and have scored more than 80 at least in two subjects. Answer the given subquestions based on the pseudocode.

The following pseudocode is executed using the "Scores" dataset. At the end of the execution, medalList should store the

Which of the following statement(s) is(are) true about nSub based on the given pseudocode? It is a Multiple Select Question (MSQ).

  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 procedure which accepts the sequence number of a student andreturns False if the student has scored more than 80 marks at least in two subjects otherwisereturns True.

Show answer

Correct answer

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

Question 19

+4 marksOne correct option

The following pseudocode is executed using the "Scores" dataset. At the end of the execution, medalList should store the list of sequence numbers of the students who have scored at least 200 total marks and have scored more than 80 at least in two subjects. Answer the given subquestions based on the pseudocode.

The following pseudocode is executed using the "Scores" dataset. At the end of the execution, medalList should store the list of sequence numbers of the students who have scored at least 200 total marks and have scored more than 80 at least in two subjects. Answer the given subquestions based on the pseudocode.

The following pseudocode is executed using the "Scores" dataset. At the end of the execution, medalList should store the

Let M, P, and C be the lists of the sequence numbers of the students who have scored more than 80 marks in Mathematics, Physics, and Chemistry respectively. If n is the sequence number of a student then choose the correct implementation of nSub?

  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 20

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

A written answer, not marked automatically.

Question 21

+1 markWritten answer

The following pseudocode is executed using the "Scores" dataset. At the end of the execution, medalList should store the list of sequence numbers of the students who have scored at least 200 total marks and have scored more than 80 at least in two subjects. Answer the given subquestions based on the pseudocode.

The following pseudocode is executed using the "Scores" dataset. At the end of the execution, medalList should store the list of sequence numbers of the students who have scored at least 200 total marks and have scored more than 80 at least in two subjects. Answer the given subquestions based on the pseudocode.

The following pseudocode is executed using the "Scores" dataset. At the end of the execution, medalList should store the
Show answer

A written answer, not marked automatically.