Multiple choice technology mainframe

DEFINE DATALOCAL01 #A (N2)END-DEFINERESET #AREPEAT UNTIL #A > 99 ADD 1 TO #AEND-REPEATENDWhat is the output of the above program?

  1. Displays from 1 to 99 and program ends normally

  2. displays from 1 to 100 and program ends normally

  3. Program will terminate abnormally without displaying anything

  4. displays till 99 and program will terminate abnormally

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

The loop increments #A from 1 to 99 (when #A=99, condition fails and it exits), then RESET fails because #A is already 99, causing abnormal termination. Options A and B are wrong because the program doesn't end normally.