Asked by Elyssa Arcibal on Jun 14, 2024

verifed

Verified

Where is the continue statement NOT usually used?

A) while loops
B) for loops
C) switch structures
D) do...while loops

Continue Statement

A control statement that causes the loop to skip the rest of its body and immediately retest its condition prior to reiterating.

Switch Structures

A control statement in programming used to execute different parts of code based on the value of a variable.

  • Distinguish between the application of break and continue statements in managing the execution of loops.
verifed

Verified Answer

AW
Angela WatsonJun 21, 2024
Final Answer :
C
Explanation :
The continue statement is not usually used in switch structures as there are no loops involved in switch statements. The switch statement is used to select one of many code blocks to be executed, and once a case match is found, the code block is executed till it reaches a break statement or the end of the switch statement. Therefore, there is no need to skip any further code blocks using the continue statement.