Q23.The following pseudocode is executed using the "Scores" dataset. What will `count` represent at the end of the execution?
```
count = 0
while(Table 1 has more rows){
Read the first row X in Table 1
Move X to Table 2
Flag = True
while(Table 1 has more rows){
Read the first row Y in Table 1
if(X.Mathematics == Y.Mathematics){
Flag = False
Move Y to Table 2
}
else{
Move Y to Table 3
}
}
if(Flag){
count = count + 1
}
Move all rows from Table 3 to Table 1
}
```
Save
Check
Details
Q23
16 Oct 2022
Q23.The following pseudocode is executed using the "Scores" dataset. What will `count` represent at the end of the execution?
```
count = 0
while(Table 1 has more rows){
Read the first row X in Table 1
Move X to Table 2
Flag = True
while(Table 1 has more rows){
Read the first row Y in Table 1
if(X.Mathematics == Y.Mathematics){
Flag = False
Move Y to Table 2
}
else{
Move Y to Table 3
}
}
if(Flag){
count = count + 1
}
Move all rows from Table 3 to Table 1
}
```