Contents

Given that x is a float variable and num is int variable containing the values 38, what will be the value of x after executing statement: x=num/4+3. 0;?
a) 12.5  
b) 13                      
c) 12                      
d) 12.0

d

What will be the value of expression (a% b + c – d * 3) if the following variables are declared in program? Int a=11, b=4, c=10, d=2;?
a) 6                        
b) 30                      
c) 33                      
d) 7

d

If x =5, y=4, z=2 what is the value of flowing expression?
y * (x + y) % 3 / z + 10
a) 10      
b) 13                      
c) 9                        
d) 8

a

What is the output of following code?
x = 3.0 / 4.0 + 3 + 2 /5;
a) 3.75  
b) 4.75  
c) 2.75   
d) 3.57

a

What is the value of expression: 20.0 * (9/5) + 32.0?
a) 52.0  
b) 54.0  
c) 51.0   
d) 50

a

What is the value of expression: (20.0 * (9/5)) + 32.0?
a) 68.0  
b) 67.0  
c) 78.0   
d) 88.0

a