Q12.The following pseudocode is executed using the "Scores" dataset. At the end of the execution of the pseudocode, if `count2` represents the number of male students whose Chemistry marks are greater than or equal to their Mathematics marks, then select the correct code fragment for A and B.
```
count1 = 0
count2 = 0
while(Table 1 has more rows){
Read the first row X in Table 1
if(.....A..... or .....B.....){
count1 = count1 + 1
}
else{
count2 = count2 + 1
}
Move X to Table 2
}
```
Save
Check
Details
Q12
23 Feb 2025
Q12.The following pseudocode is executed using the "Scores" dataset. At the end of the execution of the pseudocode, if `count2` represents the number of male students whose Chemistry marks are greater than or equal to their Mathematics marks, then select the correct code fragment for A and B.
```
count1 = 0
count2 = 0
while(Table 1 has more rows){
Read the first row X in Table 1
if(.....A..... or .....B.....){
count1 = count1 + 1
}
else{
count2 = count2 + 1
}
Move X to Table 2
}
```