Multiple choice technology mainframe

Which of the following errors are possible within a COBOL if statement?

  1. Infinite loop

  2. logical error

  3. runtime error

  4. All of the above

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

All three error types are possible within a COBOL IF statement: infinite loops (if logic never terminates), logical errors (incorrect condition logic), and runtime errors (invalid data access during condition evaluation). Therefore 'All of the above' is correct.