Q28.The following pseudocode is executed using the "Scores" dataset. At the end of the execution of the below pseudocode, if `count2` represents the number of male students whose Physics marks are less than or equal to 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
Q28
25 Feb 2024
Q28.The following pseudocode is executed using the "Scores" dataset. At the end of the execution of the below pseudocode, if `count2` represents the number of male students whose Physics marks are less than or equal to 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
}
```