Multiple choice technology mainframe

How many comparisons can a single COBOL if statement make?

  1. 1

  2. 2

  3. 3

  4. 4

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

A single COBOL IF statement can make only one comparison at a time. This is a fundamental limitation of the COB language's IF construct. To check multiple conditions, you must use nested IF statements or combine conditions with AND/OR operators within a single complex condition.