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 (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 C represent at the end of execution?
Total number of adjectives
Sum of letter count of all adjectives
Sum of letter count of all adjectives except the first of the dataset
Sum of letter count of all adjectives except the last of the dataset