Question 3
The following pseudocode is executed using the "Words" dataset. At the end of the execution, count stores the number of pairs of nouns such that both nouns have either the same letter count or both end with a full stop. Choose the correct code fragment to complete the pseudocode.
1 count = 02 while(Table 1 has more rows){3 Read the first row X in Table 14 Move X to Table 25 if(***Statement 1***){6 while(Table 1 has more rows){7 Read the first row Y in Table 18 Move Y to Table 39 if(***Statement 2***){10 if(X.LetterCount == Y.LetterCount){11 count = count + 112 }13 else{14 if(***Statement 3***){15 count = count + 116 }17 }18 }19 }20 Move all rows from Table 3 to Table 121 }22 }