Card 14 / 76: The continue and break statements are allowed within what types of statements?
A)
Loop statements
B)
All conditional statements
C)
The switch statement
D)
Expression statements
Answer:
A) Loop statements
C) The switch statement
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
Iteration statements and switch statements can include continue and break statements. Iteration statements, known as loops, include the for loop, enhanced for loop, while loop, and do-while loop.
B and D are incorrect.
The only conditional statement that can include the break and continue statement is the switch statement. There is no logical reason to continue or break out of an expression statement.
|