Contents

If you must make decision based on multiple choices, which of the following is best suited?
a) if                                        
b) else
c) if-else                                               
d) if-else-if

c

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

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 case block of switch statement ends with…
a) {                                                        
b)}
c) break                                
d) default

c