Multiple choice technology mainframe

Find out the correct statements:

  1. STOP RUN is the last executable statement of the main program. It returns control back to OS.

  2. EXIT PROGRAM is the last executable statement of sub-program. It returns control back to main program.

  3. GOBACK can be coded in main program as well as sub-program as the last statement. It just gives the control back from where it received the control.

  4. None of the above.

Reveal answer Fill a bubble to check yourself
A,B,C Correct answer
Explanation

In COBOL, STOP RUN terminates the run unit and returns control to the OS. EXIT PROGRAM is used in a subprogram to return control to the calling program. GOBACK can be used in both and returns control to the caller. Thus, all three statements are correct.