Which of the following errors are possible within a COBOL if statement?
-
Infinite loop
-
Logical Error
-
Runtime Error
-
All of the above
-
None of the above
D
Correct answer
Explanation
COBOL IF statements can encounter logical errors (wrong condition logic), runtime errors (invalid data type comparison), and infinite loops (when combined with PERFORM or if condition never becomes false due to state changes). All three error types are possible in IF-based control flow.