Q18.The given pseudocode is executed using a dataset having the same fields as the "Words" dataset, and contains the following words: "she sells seashells by the seashore the shells she sells are seashells I'm sure." Choose the correct paragraph created from Table 2 at the end of execution of the above pseudocode.
```
while(Table 1 has more rows) {
Read the first row X from Table 1
Move X to Table 2
while(Table 1 has more rows) {
Read the first row Y from Table 1
if(X.Word == Y.Word) {
Move Y to Table 3
}
else {
Move Y to Table 4
}
}
Move all rows from Table 4 to Table 1
}
```
Save
Check
Details
Q18
29 Oct 2023
Q18.The given pseudocode is executed using a dataset having the same fields as the "Words" dataset, and contains the following words: "she sells seashells by the seashore the shells she sells are seashells I'm sure." Choose the correct paragraph created from Table 2 at the end of execution of the above pseudocode.
```
while(Table 1 has more rows) {
Read the first row X from Table 1
Move X to Table 2
while(Table 1 has more rows) {
Read the first row Y from Table 1
if(X.Word == Y.Word) {
Move Y to Table 3
}
else {
Move Y to Table 4
}
}
Move all rows from Table 4 to Table 1
}
```