Computational Thinking, Qualifier
Statement
The following pseudocode is executed using the “Library” dataset. What will A represent at the end of execution?
A = 0count = 0while(Table 1 has more rows){ Read the first row X in Table 1 count = count + 1 if(X.Author != “Kalam” and X.Language != “English”){ A = A + 1 } Move X to Table 2}A = count - A**Statement** The following pseudocode is executed using the “Library” dataset. What will A represent at the end of execution? A = 0 count = 0 while(Table 1 has more rows){ Read the first row X in Table 1 count = count + 1 if(X.Author != “Kalam” and X.Language != “English”){ A = A + 1 } Move X to Table 2 } A = count - A The following pseudocode is executed using the "Scores" table. What will **A** represent at the end of the execution? A = 0 while(Table 1 has more rows){ Read the first row X in Table 1 B = True if(X.Physics > 60){ B = False } if(X.Chemistry > 60){ B = False } if(X.Mathematics > 60){ B = False } if(B){ A = A + 1 } Move X to Table 2 } The following pseudocode is executed using the "Words" dataset. At the end of the execution, **A** captures the maximum letter count of a word which is not noun. Choose the correct code fragment to complete the pseudocode. A = 0 while(Table 1 has more rows){ Read the first row X in Table 1 ******************** * Fill the code * ******************** Move X to Table 2 }