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
A COBOL IF statement can experience logical errors (incorrect condition formulation), runtime errors (type mismatches or invalid comparisons), and can potentially contribute to infinite loops if condition evaluation never becomes false. These represent the major categories of programming errors that can manifest within conditional logic.