Multiple choice technology programming languages

Within a loop, which operator jumps to the end of the loop but does not exit the loop?

  1. next

  2. last

  3. redo

  4. leave

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

In Perl, the next operator jumps to the end of the current loop iteration and continues with the next iteration, but does not exit the loop entirely. The last operator exits the loop completely, while redo restarts the current iteration without advancing. leave is not a valid Perl loop operator.