Q29.The following pseudocode is executed using the "Scores" dataset. At the end of the execution, variable `Count` captures the number of students whose total marks are more than the class average of total marks but have scored below the subject average in at least one subject. Assume that `AvgT`, `AvgP`, `AvgC` and `AvgM` hold the average total, Physics, Chemistry and Mathematics marks respectively. Choose the correct code fragment to complete the pseudocode.
```
Count = 0
while(Table 1 has more rows){
Read the first row X from Table 1
A = False, B = False, C = False, D = False
if(X.Total > AvgT){
A = True
}
if(X.Mathematics < AvgM){
B = True
}
if(X.Physics < AvgP){
C = True
}
if(X.Chemistry < AvgC){
D = True
}
********************
* Fill the code *
********************
Move X to Table 2
}
```
Save
Check
Details
Q29
25 Feb 2024
Q29.The following pseudocode is executed using the "Scores" dataset. At the end of the execution, variable `Count` captures the number of students whose total marks are more than the class average of total marks but have scored below the subject average in at least one subject. Assume that `AvgT`, `AvgP`, `AvgC` and `AvgM` hold the average total, Physics, Chemistry and Mathematics marks respectively. Choose the correct code fragment to complete the pseudocode.
```
Count = 0
while(Table 1 has more rows){
Read the first row X from Table 1
A = False, B = False, C = False, D = False
if(X.Total > AvgT){
A = True
}
if(X.Mathematics < AvgM){
B = True
}
if(X.Physics < AvgP){
C = True
}
if(X.Chemistry < AvgC){
D = True
}
********************
* Fill the code *
********************
Move X to Table 2
}
```