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
The = operator in C++ indicates…..
a) assignment
b) subtraction
c) equality
d) negation
Associativity is either right to left or…..
a) left to right
b) to top bottom
c) bottom to top
d) high to low
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
Comments are used to increase the ……. of program.
a) visibility
b) beauty
c) readability
d) complexity
The comments in the program can be written as…..
a) top
b) bottom
c) middle
d) all of these