Which of the following is used with switch statement ?
a) continue b) exit c) break d) do.
Answers
Answered by
4
Answer:
In Java break is used with the switch statement to stop the access of the statement to the computer.
Explanation:
Syntax
switch ( variable)
{
case : Statement;
break;
default: Statement;
no break required..
}
Answered by
0
The correct answer is option (c) Break.
Explanation:
- Break is used with a switch statement.
- It is used to shift control out of switch.
- When a break statement is reached, the switch terminates, and the flow of control moves to the next line following the switch statement.
- It is also used to finish the processing of a particular or specific labeled statement within the switch statement.
- So, the correct answer is option (C) i.e break.
Similar questions
Political Science,
5 months ago
Social Sciences,
10 months ago
Math,
10 months ago
Economy,
1 year ago