Choose the correct option to match the command descriptions below:
The ..(1).. command passes control to the next iteration of a for or while loop,
and skips any remaining statements in the body of the loop for the current iteration.
The ..(2).. command terminates execution of for or while loops. Statements in the loop that appear after
this command are not executed.
(1) break
(2) continue
(1) continue
(2) terminate
(1) continue
(2) break
(1) break
(2) terminate
(1)end
(2) continue
The continue command passes control to the next iteration of a for or while loop, and skips any remaining statements in the body of the loop for the current iteration.
The break command terminates execution of for or while loops. Statements in the loop that appear after this command are not executed.
Note
The continue command doesn't executes the current iteration, it resumes from its next iteration.
Whereas, the break command stops the execution of while or for loop.
Get Answers For Free
Most questions answered within 1 hours.