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 the above

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

COBOL IF statements can generate multiple error types: infinite loops from poorly designed conditions, logical errors from incorrect condition logic, and runtime errors from data type mismatches or boundary violations. All three error categories are possible in IF statement implementations.