In COBOL, when is the UNTIL condition evaluated in a PERFORM UNTIL loop?

  • After each iteration of the loop
  • At the end of the program execution
  • Before entering the loop for the first time
  • Only if the loop encounters an EXIT statement
In a PERFORM UNTIL loop, the UNTIL condition is evaluated after each iteration. The loop continues executing as long as the condition is false, and it terminates when the condition becomes true.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *