Where is it legal to put a continue statement? What does the continue statement do there?

a. A continue statement causes an unnested loop to restart.
b. A continue statement causes a loop to halt.
c. A continue statement in a loop nested in another loop causes the entire nested loop to restart.
d. A continue statement in switch statement transfers control to the top of the switch.
e. A continue statement in a nested loop causes that loop to restart, there is no effect on other loops.

a) e) are correct.

Computer Science & Information Technology

You might also like to view...

Define the method getPositionfor the class SortedListHasA.

What will be an ideal response?

Computer Science & Information Technology

Analyze each relationship to determine if it is 1:1, 1:M, or M:N.

What will be an ideal response?What will be an ideal response?

Computer Science & Information Technology