Difficulty: Easy
Correct Answer: C
Explanation:
Introduction / Context:
Control-flow statements vary across languages. The 'break' statement is widely associated with C and its derivatives (C++, Java, JavaScript) to terminate loops or switch-case blocks immediately. Identifying its origin helps map concepts across languages.
Given Data / Assumptions:
Concept / Approach:
We match the exact keyword and semantics. 'break' in C exits the nearest enclosing loop or switch. Other languages may have similar capabilities but different keywords or idioms (e.g., Fortran’s EXIT appears in later standards, not Fortran 77).
Step-by-Step Solution:
Verification / Alternative check:
C references (K&R) and modern C standards document 'break' clearly, including behavior in nested structures.
Why Other Options Are Wrong:
Common Pitfalls:
Assuming modern Fortran's EXIT or Pascal dialect extensions equate to classic 'break' keyword; the question targets the standard historic keyword usage.
Final Answer:
C
Discussion & Comments