Programming  Java  Statements

11. Which of the following is TRUE about the switch statement in Java?

A default send execution immediately to the end of the switch statement. A break send execution immediately to the end of the switch statement. A case send execution immediately to the end of the switch statement. The statements in a switch continue to execute as long as the condition at the top of the switch remains true.

Share this QA

12. Which of the following is a loop construct that will always be executed once?

switch for while do...while

Share this QA

13. Which one is not a valid jump statement?

return goto continue break

Share this QA

14. Which of the following is not a valid flow control statement?

break; continue outer; return; exit();

Share this QA

15. The break statement causes an exit

only from the innermost loop. only from the innermost switch. from innermost loops or switches. terminates a program.

Share this QA

 

*Click on the QNo to display a Question.

Total Ans