Question 6
Statement
The following pseudocode is executed using the “Words” dataset. The variable count counts the words with part of speech noun or letter count at least 5, but not both. Choose the correct code fragment to complete the pseudocode.
count = 0while(Table 1 has more rows){ Read the first row X in Table 1 if(checkSomething(X)){ count = count + 1 } Move X to Table 2}
Procedure checkSomething(Y) A = False, B = False if(X.PartOfSpeech == "Noun"){ A = True } if(X.LetterCount >= 5){ B = True } ********************** *** Fill the code *** **********************End checkSomething