?

AP® Computer Science A

Free Version

Upgrade subject to access all content

Moderate

Math Operations

APCSA-QLIZNF

What is the value of num after execution of the following expression?

 double num = 5/2 + (int)(4 * 2.7) - 12 % 7 * 2.5 + Math.sqrt(16);
A

3

B

3.5

C

4

D

4.8

E

5