Solved

What Are the Values of Variables X, Y, and Z

Question 41

Multiple Choice

What are the values of variables x, y, and z after the following code is run?
Y = 0
Z = 0
For x in range(5,7) :
If y > z:
Z, y = y, z
Y = y + x;


A) x == 7, y == 11, z == 6
B) x == 6, y == 6, z == 5
C) x = 6, y == 5, z == 6
D) x == 7, y == 12, z == 5

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions