Q3Single correct5 Marks1 Sep 2024
The given pseudocode is executed using the "Scores" dataset. What will the value of 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
while(Table 1 has more rows){
Read the first row Y in Table 1
Count = Count + DoSomething(X, Y)
Move Y to Table 3
}
Move all rows from Table 3 to Table 1
}
Procedure DoSomething(A, B)
if(A.Gender != B.Gender or A.Town/City == B.Town/City){
return(1)
}
else{
return(0)
}
End DoSomething
```