Quiz Space

Computational Thinking Qualifier: 7 August 2022 (May 2022 term)

Question 1

+3 marksOne correct option

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

text
A = 0
while (Table 1 has more rows) {
Read the first row X in Table 1
if (X.PartOfSpeech == “Noun” and X.LetterCount > 6) {
A = A + 1
}
Move X to Table 2
}
  1. A

    Number of words which have more than 6 letters

  2. B

    Number of nouns which have more than 6 letters

  3. C

    Number of nouns which have less than 6 letters

  4. D

    Number of words which have less than 6 letters

Question 2

+3 marksOne correct option

The following pseudocode is executed using the "Olympics" dataset. Assume that no player won more than one medal. What will A represent at the end of execution?

text
A = 0
while (Pile 1 has more cards) {
Read the first row X in Table 1
Move X to Pile 2
while (Pile 1 has more cards) {
Read the first row Y in Table 1
Move Y to Pile 3
if (X.Nationality == Y.Nationality and X.Gender ≠ Y.Gender) {
A = A + 1
}
}
Move all cards from Pile 3 to Pile 1
}
  1. A

    Number of pairs of players having different nationality but same gender

  2. B

    Number of pairs of players having either same nationality or same gender

  3. C

    Number of pairs of players having same nationality but different gender

  4. D

    Number of pairs of players having same nationality and same gender

Question 3

+3 marksOne or more correct options

The following pseudocode is executed using the "Scores" dataset. What will Count represent at the end of execution? It is a Multiple Select Question (MSQ).

text
Count = 0
while (Table 1 has more rows) {
Read the first row X in Table 1
Move X to Table 2
if (X.Mathematics == X.Physics or X.Gender ==‘M’) {
Count = Count + 1
}
}

Select all that apply.

  1. A

    Number of male students whose Mathematics and Physics marks are same

  2. B

    Number of male students + Number of students whose Mathematics and Physics marks are same

  3. C

    Number of male students + Number of female students whose Mathematics and Physics marks are same

  4. D

    Number of students whose Mathematics and Physics marks are same + Number of male students whose Mathematics and Physics marks are not same

11 more questions in this paper

Sign in with Google — it is free — to see every question with its answer and explanation, practise it in learning mode, or take it as a timed mock test.

More on the Computational Thinking (CT) Qualifier 7 Aug 2022 paper

The IIT Madras BS Computational Thinking (Computational Thinking (CT)) Qualifier paper sat on 7 Aug 2022, in the May 2022 term: 14 questions for 50 marks in 120 minutes. The first 3 questions are below. Sign in with Google — it is free — to see the whole paper with its answers and explanations, in learning mode or as a timed mock test.

FeatureComputational Thinking (CT) Qualifier 7 Aug 2022 at a glance
TermMay 2022 term
SubjectComputational Thinking
Course codeBSCS1001
Questions14
Marks50
Duration120 min
MCQ10
MSQ4
Official paperIIT M QUALIFIER EXAM QPE 07 Aug 2022 IBA NS
Negative markingNo negative marking.
Updated

Same Qualifier, other subjects

More Computational Thinking (CT)