Quiz Space

September 2022 term · Computational Thinking · BSCS1001

Computational Thinking (CT) Quiz 1: 16 October 2022, Set 6 (September 2022 term)

The IIT Madras BS Computational Thinking (Computational Thinking (CT)) Quiz 1 paper sat on 16 Oct 2022, in the September 2022 term, set 6: 17 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
17
Marks
53
Duration
120 min
MCQ
10
MSQ
6
Written
1

Updated

Official paper: IIT M QUIZ 1 FOUNDATION DIPLOMA QPC1 16 Oct 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
  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

+2 marksOne correct option

Select the most appropriate datatype specific to "Scores" dataset for the left column.

Select the most appropriate datatype specific to "Scores" dataset for the left column.

Select the most appropriate datatype specific to "Scores" dataset for the left column.
  1. A

    a - (3), b - (2), c- (1), d - (4)

  2. B

    a - (1), b - (2), c- (4), d - (3)

  3. C

    a - (2), b - (3), c- (1), d - (4)

  4. D

    a - (3), b - (1), c- (3), d - (4)

Show answer

Correct answer

  • A

    a - (3), b - (2), c- (1), d - (4)

Question 4

+3 marksOne correct option

The following pseudocode is executed using the "Words" dataset. What will count represent at the end of the execution?

The following pseudocode is executed using the "Words" dataset. What will count represent at the end of the execution?

The following pseudocode is executed using the "Words" dataset. What will count represent at the end of the execution?
  1. A

    Number of nouns before the first verb in the dataset

  2. B

    Number of verbs before the first noun in the dataset

  3. C

    Number of nouns after the first verb in the dataset

  4. D

    Number of verbs after the first noun in the dataset

Show answer

Correct answer

  • D

    Number of verbs after the first noun in the dataset

Question 5

+3 marksOne correct option

The following pseudocode is executed using the "Scores" dataset. What will count represent at the end of the execution?

The following pseudocode is executed using the "Scores" dataset. What will count represent at the end of the execution?

The following pseudocode is executed using the "Scores" dataset. What will count represent at the end of the execution?
  1. A

    Number of male students whose Physics marks are greater than Mathematicsmarks

  2. B

    Number of male students whose Physics marks are greater than or equal toMathematics marks

  3. C

    Number of female students whose Physics marks are greater than or equal toMathematics marks

  4. D

    Number of female students whose Physics marks are less than or equal toMathematics marks

Show answer

Correct answer

  • C

    Number of female students whose Physics marks are greater than or equal toMathematics marks

Question 6

+3 marksOne correct option

The following pseudocode is executed using the "Shopping Bills" dataset. Procedure findCommon takes pair of cards X and Y as input and returns True if the two cards share at least one common item otherwise returns False. What will count represent at the end of the execution?

The following pseudocode is executed using the "Shopping Bills" dataset. Procedure findCommon takes pair of cards X and Y as input and returns True if the two cards share at least one common item otherwise returns False. What will count represent at the end of the execution?

The following pseudocode is executed using the "Shopping Bills" dataset. Procedure findCommon takes pair of cards X and
  1. A

    Number of pairs of bills from the same shop with at least one common item

  2. B

    Number of pairs of bills from the different shops with at least one commonitem

  3. C

    Number of pairs of bills with at least two common items

  4. D

    Number of pairs of bills from the different shops with no common items

Show answer

Correct answer

  • B

    Number of pairs of bills from the different shops with at least one commonitem

Question 7

+4 marksOne correct option

The following pseudocode is executed using the “Scores” dataset. What will count represent at the end of the execution?

The following pseudocode is executed using the “Scores” dataset. What will count represent at the end of the execution?

The following pseudocode is executed using the “Scores” dataset. What will count represent at the end of the execution?
  1. A

    Number of students with same Mathematics marks

  2. B

    Number of pairs of students with same Mathematics marks

  3. C

    Number of students with distinct Mathematics marks

  4. D

    Number of pairs of students with distinct Mathematics marks

Show answer

Correct answer

  • C

    Number of students with distinct Mathematics marks

Question 8

+4 marksOne correct option

The following pseudocode is executed using the "Words" table. At the end of the execution, count stores the number of pairs of words with same letter count where both are either nouns or both end with a full stop. Choose the correct code fragment to complete the pseudocode.

The following pseudocode is executed using the "Words" table. At the end of the execution, count stores the number of pairs of words with same letter count where both are either nouns or both end with a full stop. Choose the correct code fragment to complete the pseudocode.

The following pseudocode is executed using the "Words" table. At the end of the execution, count stores the number of pa
  1. A

    Statement 1: X.PartOfSpeech == Y.PartOfSpeechStatement 2: X.LetterCount == Y.LetterCountStatement 3: X.Word and Y.Word end with a full stop

  2. B

    Statement 1: X.Word and Y.Word end with a full stopStatement 2: X.PartOfSpeech == Y.PartOfSpeechStatement 3: X.LetterCount == Y.LetterCount

  3. C

    Statement 1: X.LetterCount == Y.LetterCountStatement 2:X.Word and Y.Word end with a full stopStatement 3: X.PartOfSpeech == Y.PartOfSpeech

  4. D

    Statement 1: X.LetterCount == Y.LetterCountStatement 2: X.PartOfSpeech == Y.PartOfSpeechStatement 3: X.Word and Y.Word end with a full stop

Show answer

Correct answer

  • D

    Statement 1: X.LetterCount == Y.LetterCountStatement 2: X.PartOfSpeech == Y.PartOfSpeechStatement 3: X.Word and Y.Word end with a full stop

Question 9

+3 marksOne or more correct options

Sripriya has used a variable min to find the minimum total score using “Scores” dataset. There are many ways of initializing min. Choose the correct option(s) regarding the initialization of min. It is a Multiple Select Question (MSQ)

Select all that apply.

  1. A

    Initialize min to 0

  2. B

    Pick any random card X from the dataset and min = X.Total

  3. C

    Pick the top card X from the dataset and min = X.Total

  4. D

    Initialize min with any value greater than the possible maximum total score

  5. E

    Initialize min with any value less than the possible minimum total score

Show answer

Correct answers

  • B

    Pick any random card X from the dataset and min = X.Total

  • C

    Pick the top card X from the dataset and min = X.Total

  • D

    Initialize min with any value greater than the possible maximum total score

Question 10

+4 marksOne or more correct options

The following pseudocode is executed using the "Scores" dataset. At the end of the execution, count captures the number of boys who scored at least 75 marks in Chemistry. Choose the correct code fragment(s) to complete the pseudocode. It is a Multiple Select Question (MSQ).

The following pseudocode is executed using the "Scores" dataset. At the end of the execution, count captures the number of boys who scored at least 75 marks in Chemistry. Choose the correct code fragment(s) to complete the pseudocode. It is a Multiple Select Question (MSQ).

The following pseudocode is executed using the "Scores" dataset. At the end of the execution, count captures the number

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

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

Question 11

+4 marksOne or more correct options

The following pseudocode is executed using the “Scores” dataset. At the end of the execution, A captures the number of students who are male from Bengaluru or have scored more marks in Physics than average Physics marks. Assume that Avg holds the value of the average Physics marks. But the pseudocode may have mistakes. Identify all such mistakes (if any). Assume that all statements not listed in the options below are free of errors. It is a Multiple Select Question (MSQ).

The following pseudocode is executed using the “Scores” dataset. At the end of the execution, A captures the number of students who are male from Bengaluru or have scored more marks in Physics than average Physics marks. Assume that Avg holds the value of the average Physics marks. But the pseudocode may have mistakes. Identify all such mistakes (if any). Assume that all statements not listed in the options below are free of errors. It is a Multiple Select Question (MSQ).

The following pseudocode is executed using the “Scores” dataset. At the end of the execution, A captures the number of s

Select all that apply.

  1. A

    Line 1

  2. B

    Line 5

  3. C

    Line 8

  4. D

    Line 12

  5. E

    No error in the code

Show answer

Correct answers

  • B

    Line 5

  • C

    Line 8

Question 12

+4 marksOne or more correct options

The following pseudocode is executed using the “Words” dataset. At the end of the execution, count captures the number of pairs of words with either same letter count or same part of speech but not both. Choose the correct code fragment(s) to complete the pseudocode. It is a Multiple Select Question (MSQ).

The following pseudocode is executed using the “Words” dataset. At the end of the execution, count captures the number of pairs of words with either same letter count or same part of speech but not both. Choose the correct code fragment(s) to complete the pseudocode. It is a Multiple Select Question (MSQ).

The following pseudocode is executed using the “Words” dataset. At the end of the execution, count captures the number o

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 13

+4 marksOne or more correct options

The following pseudocode is executed using the "Library" dataset. Assume that Table 1 contains all the books authored by "Narayan" only. Also assume that the "Year" field of each book is distinct in the Table.

The following pseudocode is executed using the "Library" dataset. Assume that Table 1 contains all the books authored by "Narayan" only. Also assume that the "Year" field of each book is distinct in the Table. Which of the following statement(s) are correct at the end of execution of this pseudocode? It is a Multiple Select Question (MSQ).

The following pseudocode is executed using the "Library" dataset. Assume that Table 1 contains all the books authored by

Select all that apply.

  1. A

    Table 2 will be empty

  2. B

    Table 3 will have one record corresponding to the most recently publishedbook of "Narayan".

  3. C

    Table 3 will have one record corresponding to the oldest published book of"Narayan".

  4. D

    Table 4 will have one record corresponding to the oldest published book of"Narayan".

  5. E

    Table 4 will have one record corresponding to the most recently publishedbook of "Narayan".

Show answer

Correct answers

  • A

    Table 2 will be empty

  • C

    Table 3 will have one record corresponding to the oldest published book of"Narayan".

Question 14

+4 marksOne or more correct options

The procedure countGirls is executed using the "Scores" dataset which counts the number of girls who have got more than the subject-wise average marks in at least one of the three subjects. Assume that the subject-wise average marks for Physics, Chemistry and Mathematics are stored in variables P,C and M respectively. Choose the correct code fragment(s) to complete the procedure. It is a Multiple Select Question (MSQ).

The procedure countGirls is executed using the "Scores" dataset which counts the number of girls who have got more than the subject-wise average marks in at least one of the three subjects. Assume that the subject-wise average marks for Physics, Chemistry and Mathematics are stored in variables P,C and M respectively. Choose the correct code fragment(s) to complete the procedure. It is a Multiple Select Question (MSQ).

The procedure countGirls is executed using the "Scores" dataset which counts the number of girls who have got more than

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

Question 15

+4 marksOne correct option

Answer the given subquestions.

The following pseudocode is executed using the “Olympics” dataset. Procedure doSomething accepts a Table of rows which contains rows of same player. Assume that every player has won at least two medals and only one medal in any year. What will (A-B) represent at the end of the execution?

The following pseudocode is executed using the “Olympics” dataset. Procedure doSomething accepts a Table of rows which contains rows of same player. Assume that every player has won at least two medals and only one medal in any year. What will (A-B) represent at the end of the execution?

The following pseudocode is executed using the “Olympics” dataset. Procedure doSomething accepts a Table of rows which c
  1. A

    Year gap between first and second medal won by a player

  2. B

    Year gap between first and latest medal won by a player

  3. C

    Year gap between latest and second latest medal won by a player

  4. D

    Year gap between first and second latest medal won by a player

Show answer

Correct answer

  • C

    Year gap between latest and second latest medal won by a player

Question 16

+4 marksOne correct option

Answer the given subquestions.

The following pseudocode is executed on the "Olympics" dataset. Use the procedure doSomething in the previous question. What will count represent at the end of the execution? Assume that every player has won at least two medals and only one medal in a year.

The following pseudocode is executed on the "Olympics" dataset. Use the procedure doSomething in the previous question. What will count represent at the end of the execution? Assume that every player has won at least two medals and only one medal in a year.

The following pseudocode is executed on the "Olympics" dataset. Use the procedure doSomething in the previous question.
  1. A

    Number of players with maximum year gap between first and second medal

  2. B

    Number of players with minimum year gap between first and second medal

  3. C

    Number of players with maximum year gap between latest and second latestmedal

  4. D

    Number of players with minimum year gap between latest and second latestmedal

Show answer

Correct answer

  • C

    Number of players with maximum year gap between latest and second latestmedal

Question 17

+1 markWritten answer

Answer the given subquestions.

Show answer

A written answer, not marked automatically.