Q15.At the end of the execution of the given procedure using the "Scores" dataset, what will A and B represent?
```
A = 100
B = 100
while(Table 1 has more cards){
Read top card X from Table 1
if(X.Physics <= A){
B = A
A = X.Physics
}
else{
if(X.Physics <= B){
B = X.Physics
}
}
Move card X to Table 2
}
```
Save
Check
Details
Q15
23 Feb 2025
Q15.At the end of the execution of the given procedure using the "Scores" dataset, what will A and B represent?
```
A = 100
B = 100
while(Table 1 has more cards){
Read top card X from Table 1
if(X.Physics <= A){
B = A
A = X.Physics
}
else{
if(X.Physics <= B){
B = X.Physics
}
}
Move card X to Table 2
}
```