Question 2
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 = 0 2 while(Table 1 has more rows){ 3 Read the first row X in Table 1 4 Move X to Table 2 5 if(***Statement 1***){ 6 while(Table 1 has more rows){ 7 Read the first row Y in Table 1 8 Move Y to Table 3 9 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 }