Free Version
Moderate

# Nested Boolean Expressions

APCSA-UKWLZU

Consider the following If statement, which is syntactically correct, but uses poor style and indentation.

 if (x >= y) if (y > 0) x = x * y; else if (y < 4) x = x - y;


Assume that x and y are int variables containing the values 9 and 3, respectively, before execution of the above statement.

After execution of the statement, what value will x contain?

A

9

B

27

C

6

D

26

E

3