🎴 Flashcard Mode
COBOL Programming and Programming Fundamentals
Card1 / 10
Mastered0
Review0
QuestionClick to flip
How many comparisons can a single COBOL if statement make?
AnswerClick to flip back
A
1
💡 Explanation:
A single COBOL IF statement can make only 1 comparison. The IF statement in COBOL evaluates a single condition at a time, though multiple comparisons can be combined using logical operators like AND or OR in nested IF statements or EVALUATE statements. However, a basic IF statement structure (IF condition THEN statement-1 ELSE statement-2) contains exactly one condition check. This design reflects COBOL's emphasis on simple, readable conditional logic.