Which of the following errors are possible within a COBOL if statement?
-
Infinite loop
-
Logical Error
-
Runtime Error
-
All the above
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.