Quiz Space

Computational Thinking · Qualifier · 13 Apr 2025 · January 2025 term

Question 6: Statement The following pseudocode is executed using the …

Question 6

+4 marksOne correct option

Statement

The following pseudocode is executed using the “Words” dataset. The variable count counts the words with part of speech noun or letter count at least 5, but not both. Choose the correct code fragment to complete the pseudocode.

text
count = 0
while(Table 1 has more rows){
Read the first row X in Table 1
if(checkSomething(X)){
count = count + 1
}
Move X to Table 2
}
Procedure checkSomething(Y)
A = False, B = False
if(X.PartOfSpeech == "Noun"){
A = True
}
if(X.LetterCount >= 5){
B = True
}
**********************
*** Fill the code ***
**********************
End checkSomething
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • D

Question 6 of 12 in the IIT Madras BS Computational Thinking (Computational Thinking (CT)) Qualifier paper sat on 13 Apr 2025, in the January 2025 term (IIT M DS REATTEMPT AN EXAM QDQ1 13 Apr 2025). It carries 4 marks.

More questions from this paper

  1. Q1Statement The following pseudocode is executed using the “Library” dataset. What will A represent at the end of executi…
  2. Q2The following pseudocode is executed using the "Scores" table. What will A represent at the end of the execution?
  3. Q3The following pseudocode is executed using the "Words" dataset. At the end of the execution, A captures the maximum let…
  4. Q4Let X be a row in the "Words" dataset. Let isShortVerb be a procedure to find whether the word in the row X is a verb w…
  5. Q5Statement The following pseudocode is executed using the "Scores" dataset. At the end of the execution of below pseudoc…
  6. Q7Statement The given pseudocode is executed using the "Scores" dataset. There is a hypothesis that if a student performs…
  7. Q8Statement The following pseudocode is executed using the “Scores” dataset. At the end of the execution, A captures the …
  8. Q9Statement The given information represents a "Words" dataset and it may have some mistakes with respect to the sanity o…
  9. Q10Statement The following pseudocode is executed using a dataset similar to the "Words" dataset, based on the following p…
  10. Q11Statement\ The following pseudocode is executed using the “Scores” dataset Based on the above data, answer the given su…
  11. Q12Statement\ The following pseudocode is executed using the “Scores” dataset Based on the above data, answer the given su…