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) A continue statement causes an unnested loop to restart., and e) A continue statement in a nested loop causes that loop to restart, there is no effect on other loops.

Computer Science & Information Technology

You might also like to view...

List two disadvantages of using physical separation in a computing system. List two disadvantages of using temporal separation in a computing system

What will be an ideal response?

Computer Science & Information Technology

The form of the for loop shown below is called a(n)  ____________________ for loop.      for (dataType identifier : arrayName)        statements ?

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology