Question 14
The following pseudocode is executed using the "Words" dataset?
A = 0, B = 0, C = 0P = False, Q = Truewhile (Table 1 has more rows) { Read the first row X in Table 1 if (P) { if (X.PartOfSpeech == "Verb") { B = B + X.LetterCount } } if (X.PartOfSpeech == "Noun") { C = C + X.LetterCount P = True } if (Q) { A = A + X.LetterCount Q = False } else { if (X.Word ends with a full stop) { A = A + X.LetterCount Q = True P = False } } Move X to Table 2}Based on the above data, answer the given subquestions.
What will C represent at the end of execution?
Total number of nouns
Sum of letter count of all nouns
Sum of letter count of all nouns except the first of the dataset
Sum of letter count of all nouns except the last of the dataset