Computational Thinking, Qualifier
The following pseudocode is executed using the "Words" dataset. What will A represent at the end of the execution?
1 A = 0 2 while(Table 1 has more rows){ 3 Read the first row X in Table 1 4 i = 1, B = True 5 while(i <= X.LetterCount){ 6 if(ith letter of X.Word is a vowel){ 7 B = False 8 } 9 i = i + 110 }11 if(B){12 A = A + 113 }14 Move X to Table 215 }The following pseudocode is executed using the "Words" dataset. What will **A** represent at the end of the execution? 1 A = 0 2 while(Table 1 has more rows){ 3 Read the first row X in Table 1 4 i = 1, B = True 5 while(i <= X.LetterCount){ 6 if(ith letter of X.Word is a vowel){ 7 B = False 8 } 9 i = i + 1 10 } 11 if(B){ 12 A = A + 1 13 } 14 Move X to Table 2 15 } The following pseudocode is executed using the "Words" dataset. At the end of the execution, **A** is set to True if there exist a pair of words with same part of speech and same letter count. Choose the correct code fragment to complete the pseudocode. 1 A = False 2 while(Table 1 has more rows){ 3 Read the first row X in Table 1 4 Move X to Table 2 5 while(Table 1 has more rows){ 6 Read the first row Y in Table 1 7 ******************** 8 * Fill the code * 9 ******************** 10 Move Y to Table 3 11 } 12 Move all rows from Table 3 to Table 1 13 } The following pseudocode is executed using the "Library" dataset. What will **count** represent at the end of the execution? 1 A = 0, count = 0 2 while(Table 1 has more rows){ 3 Read the first row X in Table 1 4 if(X.Year > A){ 5 A = X.Year 6 } 7 Move X to Table 2 8 } 9 while(Table 2 has more rows){ 10 Read the first row Y in Table 2 11 if(Y.Year != A){ 12 count = count + 1 13 } 14 Move Y to Table 1 15 }