Contents

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

Which of the following datatypes are accepted by switch statement?
a) int                                      
b) char
c) long                                   
d) all of these

d

Which of the following is an invalid if-else statement?
a) if (if (a == 1)) {}             
b) if (a){}
c) if ((char) a) {} 
d) if (func1 (a)) {}

a

Which structure can be enclosed inside another selection structure?
a) if statement                     
b) if-else statement
c) nested if                           
d) switch statement

c