Q27.The following pseudocode is executed using the "Words" table. At the end of the execution, `C` captures the number of pairs of words where both words have the same part of speech or both words end with a full stop and have the same letter count. Choose the correct code fragment(s) to complete the pseudocode.
```
C = 0
while(Table 1 has more rows){
Read the first row X in Table 1
Move X to Table 2
while(Table 1 has more rows){
Read the first row Y in Table 1
Move Y to Table 3
***************
* Fill the code *
***************
}
Move all rows from Table 3 to Table 1
}
```
Save
Check
Details
Q27
5 Jun 2022
Q27.The following pseudocode is executed using the "Words" table. At the end of the execution, `C` captures the number of pairs of words where both words have the same part of speech or both words end with a full stop and have the same letter count. Choose the correct code fragment(s) to complete the pseudocode.
```
C = 0
while(Table 1 has more rows){
Read the first row X in Table 1
Move X to Table 2
while(Table 1 has more rows){
Read the first row Y in Table 1
Move Y to Table 3
***************
* Fill the code *
***************
}
Move all rows from Table 3 to Table 1
}
```