Multiple choice technology programming languages

"The ______ loop executes as long as the condition returns an exit status of zero, whereas the _______ loop executes unless the condition returns a zero exit status. "

  1. while,until

  2. until, while

  3. repeat, while

  4. None

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

while loops continue as long as the condition returns true (exit status 0). until loops continue until the condition becomes true, meaning they execute when the condition returns false (non-zero exit status). This is the inverse logic of while loops.