?

AP® Computer Science A

Free Version

Upgrade subject to access all content

Difficult

Logical Operators "Not", "And" in Conditional Statements

APCSA-DFQV4E

Assume that both x and y are of type int. The expression:

!((x > 15) && !(x != y))

is equivalent to:

A
(x > 15) && (x == y)
B
(x > 15) && (x != y)
C
(x <= 15) && (x != y)
D
(x > 15) || (x == y)
E
(x <= 15) || (x != y)