Quiz Space

May 2023 term · Computational Thinking · BSCS1001

Computational Thinking Quiz 2: 6 August 2023, Set 1 (May 2023 term)

The IIT Madras BS Computational Thinking (Computational Thinking (CT)) Quiz 2 paper sat on 6 Aug 2023, in the May 2023 term, set 1: 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
11
MSQ
5
Written
1

Updated

Official paper: IIT M FOUNDATION AN4 EXAM QPF4 06 Aug 2023 · No negative marking.

Question 1

+1 markOne correct option

THIS IS QUESTION PAPER FOR THE SUBJECT "FOUNDATION LEVEL : SEMESTER I: 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

+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

  • D
    Figure from the original question paper

Question 4

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

    Number of words with at most two consecutive occurrences of the same letter

  2. B

    Number of words with at least two consecutive occurrences of the same letter

  3. C

    Number of words with exactly two consecutive occurrences of the same letter

  4. D

    Number of words with no consecutive occurrences of the same letter

Show answer

Correct answer

  • B

    Number of words with at least two consecutive occurrences of the same letter

Question 5

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

    Number of sentences which have minimum number of letters

  2. B

    Number of sentences which have minimum number of words

  3. C

    Number of sentences which have minimum number of distinct letters

  4. D

    Number of sentences which have minimum number of distinct words

Show answer

Correct answer

  • C

    Number of sentences which have minimum number of distinct letters

Question 6

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

Question 7

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

Select all that apply.

  1. A

    Line 2: LB should be initiated as an empty list

  2. B

    Line 5: Conditional expression should use "not" operator

  3. C

    Line 7: X should be appended to the list LB

  4. D

    Line 11: X should be appended to the list LB

  5. E

    Line 13: Incorrect Conditional expression

  6. F

    Line 16: LA should be returned

Show answer

Correct answers

  • A

    Line 2: LB should be initiated as an empty list

  • C

    Line 7: X should be appended to the list LB

  • E

    Line 13: Incorrect Conditional expression

Question 8

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

    Number of players in each Sport

  2. B

    Total count of players in the Olympics dataset

  3. C

    Number of the players in the most frequent sport

  4. D

    Number of frequent sports

Show answer

Correct answer

  • C

    Number of the players in the most frequent sport

Question 9

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

    Number of maximum frequency words with letter count less than averageletter count

  2. B

    Number of maximum frequency words with letter count greater than averageletter count

  3. C

    Number of minimum frequency words with letter count less than averageletter count

  4. D

    Number of minimum frequency words with letter count greater than averageletter count

Show answer

Correct answer

  • B

    Number of maximum frequency words with letter count greater than averageletter count

Question 10

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

Select all that apply.

  1. A

    Error in line 3

  2. B

    Error in line 4

  3. C

    Error in line 5

  4. D

    Error in line 6

  5. E

    Error in line 8

  6. F

    The pseudocode is error free

Show answer

Correct answers

  • A

    Error in line 3

  • D

    Error in line 6

Question 11

+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

  • B
    Figure from the original question paper

Question 12

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

Select all that apply.

  1. A

    The procedure may return [6,7,8,9]

  2. B

    The procedure always returns [1,2,3,4,5] since the key A comes firstalphabetically

  3. C

    The procedure may return [1,2,3,5]

  4. D

    The procedure may return 19

Show answer

Correct answers

  • A

    The procedure may return [6,7,8,9]

  • D

    The procedure may return 19

Question 13

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

+3 marksOne correct option

The following pseudocode is executed using the "Words" dataset. Answer the subquestions.

The following pseudocode is executed using the "Words" dataset. Answer the subquestions.

The following pseudocode is executed using the "Words" dataset. Answer the subquestions.

What will flag represent at the end of each sentence ?

  1. A

    Number of words in each sentence

  2. B

    Number of adjective(s) in each sentence

  3. C

    Number of non-adjective(s) in each sentence

  4. D

    Number of adjective(s) that are not repeated in each sentence

Show answer

Correct answer

  • B

    Number of adjective(s) in each sentence

Question 15

+2 marksOne correct option

The following pseudocode is executed using the "Words" dataset. Answer the subquestions.

The following pseudocode is executed using the "Words" dataset. Answer the subquestions.

The following pseudocode is executed using the "Words" dataset. Answer the subquestions.

wList will contain all words of last sentence of "Words" dataset at the end of execution of given pseudocode.

  1. A

    TRUE

  2. B

    FALSE

Show answer

Correct answer

  • B

    FALSE

Question 16

+2 marksOne correct option

The following pseudocode is executed using the "Words" dataset. Answer the subquestions.

The following pseudocode is executed using the "Words" dataset. Answer the subquestions.

The following pseudocode is executed using the "Words" dataset. Answer the subquestions.

The value of length(sList) will be same as the number of sentences in the "Words" dataset at the end of execution of given pseudocode.

  1. A

    TRUE

  2. B

    FALSE

Show answer

Correct answer

  • A

    TRUE

Question 17

+1 markWritten answer

The following pseudocode is executed using the "Words" dataset. Answer the subquestions.

The following pseudocode is executed using the "Words" dataset. Answer the subquestions.

The following pseudocode is executed using the "Words" dataset. Answer the subquestions.
Show answer

A written answer, not marked automatically.