Question 16
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 (X.PartOfSpeech == "Adjective") { C = C + X.LetterCount P = True } if (P and X.PartOfSpeech == "Noun") { B = B + X.LetterCount } 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 nouns which come after an adjective
Sum of letter count of all nouns which come next to an adjective
Sum of letter count of all the nouns that come after the first adjective in each sentence
Sum of letter count of all nouns which come next to the first adjective in each sentence
None of these