Q33.The following pseudocode is executed using the "Scores" dataset. At the end of the execution, `C` captures the number of pairs of students who have same date of birth, or the same City/Town but different gender. 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
***************
* Fill the code *
***************
Move Y to Table 3
}
Move all rows from Table 3 to Table 1
}
```
Save
Check
Details
Q33
10 Jul 2022
Q33.The following pseudocode is executed using the "Scores" dataset. At the end of the execution, `C` captures the number of pairs of students who have same date of birth, or the same City/Town but different gender. 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
***************
* Fill the code *
***************
Move Y to Table 3
}
Move all rows from Table 3 to Table 1
}
```