Limited access

Upgrade to access all content for this subject

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.

Select an assignment template