Multiple choice technology mainframe

The COBOL perform loop is the equivalent of which of the following structures found in other languages, such as Java or C++

  1. For loop

  2. Do-While loop

  3. Method

  4. None of the Above

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

COBOL's PERFORM...UNTIL structure is analogous to a do-while loop in languages like Java and C++ - it executes the code block, then checks the condition, repeating until the condition becomes true. It's not a for loop (fixed iteration) or a method call.