Contents

What is the output of expression a += (b-=2)? Where a=10, b=12
a) 20 and 10                        
b) 10 and 20
c) 10 and 12                        
d) 12 and 10

a

The = operator in C++ indicates…..
a) assignment                     
b) subtraction
c) equality                            
d) negation

a

Associativity is either right to left or…..
a) left to right                     
b) to top bottom
c) bottom to top
d) high to low

a

Which of the following is used to declare a variable to store real numbers?
a) integer data type            
b) float data type
c) character data type                                                       
d) string data type

b

Comments are used to increase the ……. of program.
a) visibility                           
b) beauty
c) readability                      
d) complexity

c

The comments in the program can be written as…..
a) top                                    
b) bottom
c) middle                              
d) all of these

d