Question 17
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 A represent at the end of execution?
Sum of letter count of first and last word of dataset
Sum of letter count of first and last word of first sentence
Sum of letter count of first and last word of last sentence
Sum of letter count of words first and last word of each sentence
None of these