Limited access

Upgrade to access all content for this subject

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

Select an assignment template