Q16.The following pseudocode is executed using the "Scores" dataset. Which of the following statements is/are correct?
```
A = 0, B = 0
while(Table 1 has more rows){
Read the first row X from Table 1
flag = False
if(X.Gender == 'F' and X.Total > 250){
flag = True
}
if(not flag){
A = A + 1
if(X.Total > 250){
B = B + 1
}
}
Move X to Table 2
}
```
Save
Check
Details
Q16
23 Feb 2025
Q16.The following pseudocode is executed using the "Scores" dataset. Which of the following statements is/are correct?
```
A = 0, B = 0
while(Table 1 has more rows){
Read the first row X from Table 1
flag = False
if(X.Gender == 'F' and X.Total > 250){
flag = True
}
if(not flag){
A = A + 1
if(X.Total > 250){
B = B + 1
}
}
Move X to Table 2
}
```