Contents

In C++ program double slash (//) indicates…………
a) beginning of comment
b) end of comment
c) beginning of block of code                           
d) none of these

a

In C++ program, comments are written in a program between….
a) {}      
b) /**/   
c) |**|    
d) < >

b

The equivalent of statement of sum=sum-num is……
a) sum=-num                       
b) sum=num
c) sum-=num                       
d) sum=- -num

c

What is the result of expression a = 7.8 + b/5; where b=12;?
a) 7                        
b) 9                        
c) 11                      
d) 13

b

What is the output of expression float y= 3.4 + sqrt (25.0)?
a) 8                        
b) 8.4     
c) 9.4     
d) 10.4

b

What is the output of expression z= 18.0/4?
a) 4.5     
b) 5.5     
c) 6.5     
d) 7.5

a