Multiple choice technology programming languages

In the ENVIRONMENT DIVISION which paragrahs should a program (not a subroutine) have?

  1. ERROR RECOVERY

  2. ROLLBACK

  3. Any one of the above

  4. Both of the above

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

In COBOL ENVIRONMENT DIVISION, programs (not subroutines) should have both ERROR RECOVERY and ROLLBACK paragraphs. These paragraphs handle error conditions and transaction recovery. The question follows COBOL mainframe programming standards where recovery sections are required for robust program execution.