English

Which of the following keywords can be used to terminate a switch case as well as a loop construct? - Computer Applications

Advertisements
Advertisements

Question

Which of the following keywords can be used to terminate a switch case as well as a loop construct? 

Options

  • Continue

  • Void

  • Break

  • Stop

MCQ

Solution

Break

Explanation:

In Java, the break keyword is used to end both loop constructs and switch situations.

shaalaa.com
  Is there an error in this question or solution?
Chapter 1.1: Nested Loop - EXERCISES [Page 144]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.1 Nested Loop
EXERCISES | Q I. 3. | Page 144
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×