Solved

If a Break Occurs Within the Innermost Loop of a Nested

Question 3

Multiple Choice

If a break occurs within the innermost loop of a nested loop that is three levels deep


A) when the break is encountered just the innermost loop is "broken"
B) when the break is encountered, all loops are "broken" and execution continues from after the while statement (in our example)
C) when the break is encountered, all but the outermost loops are broken, and execution continues from the next iteration of the while loop (in our example)
D) this is a syntax error unless there are break or continue statements at each loop level
E) none of the above

Correct Answer:

verifed

Verified

Related Questions