Free Version
Moderate

# Variable Assignment and Operations

APCSA-WKWFIL

What are the values of x and y at the end of the following block of code?

 int x = 5;
int y = x;
x++;
y += x;
y--;

A

x = 10, y = 10

B

x = 6, y = 10

C

x = 6, y = 5

D

x = 6, y = 11

E

Cannot be determined, int y = x is not valid.