Multiple choice technology mainframe

If someone wanted a COBOL perform "loop" to execute once before the condition is checked, which of the following would they do?

  1. Use a standard perform statement

  2. Use an in line perform

  3. Skillful use of the COBOL reserved word "AFTER"

  4. This is not possible in COBOL

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

The PERFORM statement with the AFTER clause in COBOL creates a loop that executes the body first, then checks the condition for subsequent iterations. This is equivalent to a do-while loop in other languages.