Question 15
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 B represent at the end of execution?
Sum of letter count of all verbs which come after a noun
Sum of letter count of all verbs which come next to a noun
Sum of letter count of all verbs which come after a noun in each sentence
Sum of letter count of all verbs which come next to a noun in each sentence
None of these