Question 4
The following pseudocode is executed using the "Scores" dataset?
A = 0, B = 0, C = 0, D = 0while (Table 1 has more rows) { Read the top row X from Table 1 if (X.PhysicsMarks ≥ X.ChemistryMarks) { A = A + 1 } else { B = B + 1 } if (X.PhysicsMarks ≤ X.ChemistryMarks) { C = C + 1 } else { D = D + 1 } Move X to Table 2}What will (A + C) – (B + D) represent at the end of execution of pseudocode?
It is always zero
Number of students who have different marks in Physics and Chemistry
Number of students who have same marks in Physics and Chemistry
Twice the number of students who have different marks in Physics and Chemistry
Twice the number of students who have same marks in Physics and Chemistry