Contents

What is the purpose of break statement?
a) exit from switch            
b) enter in switch
c) remain in switch             
d) none of these

a

When did default statement is executed?
a) no case match
b) case match
c) both a & b                       
d) none of these

a

Which of the following is correct syntax of switch statement?
a) switch” expression “statement    
b) switch(expression) statement
c) both a & b                       
d) none of these

b

The continue statement cannot be used with…
a) for                                     
b) while
c) switch                                               
d) do while

c

The case block of switch statement ends with…
a) {                        
b)}                         
c) break
d) default

c

All case block comes after matching case, will also be executed if….
a) break is used   
b) break not used
c) default is used 
d) default not used

b