Which of the following is a valid C++ assignment statement?

a. x = q - (y * z);
b. y + z = x;
c. y = b * -c;
d. x = ((x) + (y / -z);
e. x = a b;


a. x = q - (y * z);

Computer Science & Information Technology

You might also like to view...

When using the Elliptical Marquee Tool, you can further specify blending by selecting the ____ check box to adjust the block-like, staircase look of rounded corners, resulting in the effect in the bottom-right corner of the accompanying figure.


a. Normal
b. Anti-alias
c. Inverse
d. Anti-jagged

Computer Science & Information Technology

Write four different program statements that increment the value of an integer variable total.

What will be an ideal response?

Computer Science & Information Technology

Instance variables declared private are not directly accessible ________

a) outside the class b) by other methods of the same class c) by the constructor of the class d) inside the same class

Computer Science & Information Technology

The maximum height of a binary tree of n nodes is ______.

a) n b) n / 2 c) (n / 2 ) – 2 d) log2(n + 1)

Computer Science & Information Technology