Q25.The following pseudocode is executed using the "Words" dataset. At the end of the execution, `count` captures the number of pairs of words with either same letter count or same part of speech but not both. Choose the correct code fragment(s) to complete the pseudocode.
```
count = 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
count = count + findPair(X, Y)
}
Move all rows from Table 3 to Table 1
}
Procedure findPair(X, Y)
******** Fill the code ********
End findPair
```
Save
Check
Details
Q25
16 Oct 2022
Q25.The following pseudocode is executed using the "Words" dataset. At the end of the execution, `count` captures the number of pairs of words with either same letter count or same part of speech but not both. Choose the correct code fragment(s) to complete the pseudocode.
```
count = 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
count = count + findPair(X, Y)
}
Move all rows from Table 3 to Table 1
}
Procedure findPair(X, Y)
******** Fill the code ********
End findPair
```