Multiple choice technology operating systems

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

The while loop continues executing as long as its condition returns exit status 0 (true), whereas the until loop executes until its condition becomes 0 (true), meaning it runs while the condition returns non-zero (false). This is the inverse behavior.