Contents

Which of the following is used for multiple choices or selection among statements?
a) if statement                     
b) if-else statement
c) nested if                           
d) switch statement

d

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

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

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

c

Which keyword can be used for coming out of recursion?
a) return                              
b) break
c) exit                                    
d) none of these

a