?

AP® Computer Science A

Free Version

Upgrade subject to access all content

Moderate

Boolean Conditions

APCSA-ZDGUF8

Which logical expression evaluates to false if either x or y is equal to 5?

A

if (x == 5) || (y == 5)

B

if (x != 5) && (y != 5)

C

if (x != 5) || (y != 5)

D

if (x = 5) && (y = 5)

E

if (x != 5) && (y = 5)