?

AP® Computer Science A

Free Version

Upgrade subject to access all content

Easy

Compound Operators

APCSA-ZNWLUU

Consider the following code.

int num = 5;
num += 10;
num -= 2;
num *= 5;
num /= 3;

What is the value of num after the numeric expressions are evaluated?

A

21

B

21.66666

C

22

D

3

E

13