Multiple choice technology mainframe

The following portion of procedure division MOVE 0 TO A, I. PARA-1. ADD 3 TO A. ADD 2 TO I. IF I < a=" ‘,">B MOVE A TO C ELSE MOVE B TO C. ADD C TO D. Indicate which one of the following does not support the above statements

  1. The value of A will be added to D only if A is greater than B.

  2. The value of B will be added to D only if B is greater than A.

  3. The larger of the values, A and B will be added to D.

  4. NONE

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The IF statement compares I with B. If I < B, then A (which is 3) moves to C. Otherwise, B moves to C. Since A=3 and the condition adds 3 repeatedly, when I exceeds B, the larger value (B) gets added to D via C. The code adds the maximum of A and B to D.