?

AP® Computer Science A

Free Version

Upgrade subject to access all content

Moderate

Decision Structures

APCSA-LVZUUF

Consider the following expression where n and k are integers:

 if (n > 5) && (k/n < 12)

If n equals 0 when the expression is evaluated, which of the following statements about the expression is true?

A

It causes a divide-by-zero exception.

B

The code will not compile.

C

The expression evaluates to false.

D

The expression evaluates to true.

E

It causes a run-time error.