Question 10
The following pseudocode is executed using the "Words" dataset. What will A represent at the end of execution?
A = 0, B = 0, C = 0while (Table 1 has more rows) { Read the first row X in Table 1 Move X to Table 2 if (X.PartOfSpeech == “Adjective”) { B = B + 1 } if (X.PartOfSpeech == “Verb”) { C = C + 1 } if (X.Word ends with a full stop) { if (B ≥ 1 and C ≤ 2) { A = A + 1 } B = 0, C = 0 }}Number of sentences with at most two adjectives and one verb
Number of sentences with two adjectives and at least one verb
Number of sentences with at least one verb and at most two adjectives
Number of sentences with at least one adjective and at most two verbs