Contents

Which of the following symbol is used for NOT operator?
a) ||                        
b) &&    
c) !                         
d) #

c

The logical NOT operator (!) is a…….
a) unary operator             
b) binary operator
c) ternary operator             
d) bitwise operator

a

A decision statement can be used for……
a) run set of statements     
b) test a set of conditions
c) test if condition is true   
d) all of these

d

Which of the following is not a conditional statement?
a) if                                        
b) if….else
c) switch                                               
d) while

d

Which of the following is used for making two way decisions?
a) if…..else                          
b) if
c) nested if                           
d) switch

a

In if statement, test statement is written within symbol…..
a) ( )        
b) { }                      
c) [ ]        
d) << <<

a