adplus-dvertising
frame-decoration

Question

Which of the following statements are correct?

1. The switch statement is a control statement that handles multiple selections and enumerations by passing control to one of the case statements within its body.
2. The goto statement passes control to the next iteration of the enclosing iteration statement in which it appears.
3. Branching is performed using jump statements which cause an immediate transfer of the program control.
4. A common use of continue is to transfer control to a specific switch-case label or the default label in a switch statement.
5. The do statement executes a statement or a block of statements enclosed in {} repeatedly until a specified expression evaluates to false.

a.

1, 2, 4

b.

1, 3, 5

c.

2, 3, 4

d.

3, 4, 5

Answer: (b).1, 3, 5

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following statements are correct? 1. The switch statement is a control statement that handles multiple selections and enumerations by passing control to one of the...