Quiz Space

Computational Thinking · Qualifier · 7 Aug 2022 · May 2022 term

Question 1: The following pseudocode is executed using the "Words" da…

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

Show answer

Correct answer

  • B

    Number of nouns which have more than 6 letters

Question 1 of 14 in the IIT Madras BS Computational Thinking (Computational Thinking (CT)) Qualifier paper sat on 7 Aug 2022, in the May 2022 term (IIT M QUALIFIER EXAM QPE 07 Aug 2022 IBA NS). It carries 3 marks.

More questions from this paper

  1. Q2The following pseudocode is executed using the "Olympics" dataset. Assume that no player won more than one medal. What …
  2. Q3The following pseudocode is executed using the "Scores" dataset. What will Count represent at the end of execution? It …
  3. Q4The following pseudocode is executed using the "Olympics" dataset. Count represents the number of pairs of distinct pla…
  4. Q5The following pseudocode is executed using the "Words" dataset. Based on the above data, answer the given subquestions.…
  5. Q6The following pseudocode is executed using the "Words" dataset. Based on the above data, answer the given subquestions.…
  6. Q7A palindrome is a sequence of characters which reads the same backward as forward, for example level and noon. The foll…
  7. Q8The following pseudocode is executed using the "Scores" dataset. What will Count represent at the end of execution?
  8. Q9The following pseudocode is executed using the "Scores" dataset. At the end of execution, B captures the minimum Mathem…
  9. Q10The following pseudocode is executed using the "Words" dataset. What will A represent at the end of execution?
  10. Q11The following pseudocode is executed using the "Scores" dataset. What will A represent at the end of execution?
  11. Q12The following pseudocode is executed using the "Scores" dataset. What will (A - B) represent at the end of execution?
  12. Q13A sentence is said to be balanced if there are equal numbers of vowels and consonants in it. The following pseudocode i…
  13. Q14The following pseudocode is executed using the "Olympics" dataset. It counts the number of pairs of players who have th…