1.
Q1: After executing the following code, the value in variable
a
is and the value in variable b
is .int a = 1;
int b = 2;
a = 3;
a
is and the value in variable b
is .int a = 1;
int b = 2;
a = 3;
r
is and the value in variable s
is .int r = 2;
int s = 4;
r = s;
p
is and the value in variable q
is .int p = 1;
int q = 8;
q = p;
p = q;
x
is , the value in variable y
is , and the value in variable z
is . int x = 7;
int y = 5;
int z = 3;
x = y;
y = z;
z = x;
integer
variables a
,b
,c
, and d
as depicted below. The code beside the diagram is intended to move the values in those variables one place clockwise, but two statements are missing. Choose the option that has the correct 2 statements.