int x, y;if (x < 4)    y = 2;else if (x > 4){    if (x > 7)        y = 4;    else        y = 6;}else    y = 8;Based on the code above, what is the value of y if x = 1?

A. 2
B. 4
C. 6
D. 8

Answer: A

Computer Science & Information Technology

You might also like to view...

Define SEO?

What will be an ideal response?

Computer Science & Information Technology

The ________ class constructor is called before the ________ class constructor.

A) base, derived B) derived, base C) public, private D) private, public E) None of the above

Computer Science & Information Technology