Computer Science, asked by kmaniruddin28, 11 months ago

Which of the following is used with switch statement ?
a) continue b) exit c) break d) do.

Answers

Answered by ShivanshB2
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 priyarksynergy
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