What is the output of expression -16 % 4?
a) 0
b) 4
c) 16
d) -4
To add a value 1 to variable y, you write
a) y+=1
b) y=y+1
c) y=1+y
d) all of these
A+=b is equivalent to…….
a) b+=a
b) a=+b
c) a=a + b
d) b=b + a
In C++, the expression sum=sum + n can also be written…..
a) sum+=n
b) sum= n++
c) sum=+n
d) n+=sum
What is the output of the code? Double x=3.3;
int (y)= int (x);
a) x is 3.3 and y is 3.0
b) x is 3.0 and y is 3.0
c) x is 3.3 and y is 3
d) x is 3 and y is 3
Which C++ expression represents the following algebraic expression?
a) 1/c+1-a/1+b
b) 1/c+(1-a/1+b)
c) (1/c) +(1-a/1+b)
d) 1/c+(1-a)/(1-b)