Contents

What is the value of variable result, where result= 14-4*6+12/6;
a) 12      
b) 2                        
c) -8                       
d) 62

c

What is the output of following code? ++a/3-c*d; where a=5, b=3, c=2, d=2
a) -2       
b) -1                       
c) 4                        
d) -4

a

What is the return value and its type by expression? 11 * 3-35/(11%4);
a) 22      
b) 32                      
c) 11                      
d) 0

a

What is the return value and its type by expression? 9%11+13%11+0%11
a) 22
b) 11                      
c) 12                      
d) 10

b

What is the result of expression f/2*(3- ++z))-5? Where f=12.0; z=3;
a) 22      
b) 11                      
c) -11.0 
d) 12

c

Which of the following expression yield 0.5?
a) 1/2.0                                 
b) (double) 1/2
c) 1.0/2                                 
d) all of these

d