Contents

Which assignment operators store the letter A in character variable someChar?
a) someChar=” A”;            
b) someChar=’A’;
c) someChar=A; 
d) both a & c

b

Which of the following operator is used to assign a value to variable?
a) >                        
b) +                        
c) =                        
d) *

d

Which of the following is valid assignment statement?
a) a=100;                             
b) c=a + b;
c) x = c – d + 10; 
d) all of these

d

The operator that operates on single operand is called……
a) Unary operator             
b) binary operator
c) Ternary operator
d) Assignment operator

a

Which of the following are Unary operators Except?
a) + +
b) - -                       
c)!                          
d) +

c

Which of the following is only binary operator?
a) !                         
b) + +     
c) - -                       
d) +

d