=[AD]=
Engineering Exams RRB-JE Civil and Allied Engineering Technical Abilities 2019 28-Aug-2019 Paper-2 Shift-2 Easy +1 -0.33
The _________ statement is used to transfer the control to the end of statement block in a loop.
Correct Answer: A. Break
Explanation: The break statement is the correct answer because it is specifically designed to terminate the execution of a loop immediately. When a program encounters this keyword within a loop, it halts the current block of code and transfers control to the instruction directly following the loop's closing boundary. In contrast, the continue statement only skips the remainder of the current iteration to start the next one, while switch is a conditional branching structure and goto is an unstructured jump to a labeled location. Therefore, break is the standard mechanism for exiting a statement block in a loop prematurely.
Click below to open Discussion & Feedback
0 Issues
Please login to comment or Report Issues.
Reported Issues
=[AD]=