Difficulty: Easy
Correct Answer: 1, 3, 5
Explanation:
Introduction / Context:
This conceptual item asks you to pick the accurate descriptions of several C# control-flow constructs: switch, jump statements (break/continue/goto/return), and the do loop. The distractors intentionally conflate goto and continue behaviors with switch case labels.
Given Data / Assumptions:
Concept / Approach:
Recall: switch selects among cases; jump statements cause immediate transfers of control; continue skips to the next iteration of the current loop, not to a switch label; the do statement executes the body at least once, then repeats until the expression becomes false.
Step-by-Step Solution:
Verification / Alternative check:
Write micro-examples using each construct and observe the control flow in a debugger; the behaviors align with the reasoning above.
Why Other Options Are Wrong:
Common Pitfalls:
Assuming continue can send control into arbitrary labels or switch cases; misunderstanding that do executes once before the first test.
Final Answer:
1, 3, 5
Discussion & Comments