Contents

In If statement, the code to be performed if the conditional statement evaluates true is enclosed in…….
a) ()                                        
b) []
c) {}                                       
d) <>

c

The first line in switch block contains…..
a) value of first criterion    
b) first criterion is true
c) expression to be evaluated                         
d) statement to be executed

c

The case block of switch statement ends with…….
a) end select                         
b) end case
c) break                                
d) case else

c

Which of the following is equivalent to (p>=q)?
a) p<q                                   
b) !(p<q)
c) p>q                                    
d) !p<q

b

The conditional statement a<b is true if…
a) a is greater than b
b) a is less than b
c) a is greater than or equal to b      
d) a is less than or equal to b

b

Another term for conditional operator is
a) ternary                            
b) binary
c) byte                                   
d) iteration

a