Q. What is the purpose of the ‘break’ statement?

A
To skip to the next iteration
B
To exit a loop or switch statement
C
To continue the loop
D
To define a new loop
Solution:

The break statement terminates the innermost loop or switch statement immediately.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!