Question: Consider the following code ( on the left ) . After this code is executed, which of the following statements ( on the right )

Consider the following code (on the left). After this code is executed, which of the following statements
(on the right) are True? Check all that apply.
x =10
y =100
z =[x, y]
x = y
(a) x and y refer to the same object in memory
(b) x and z[0] refer to the same object in memory
(c) x and z[1] refer to the same object in memory
(d) y and z[1] refer to the same object in memory
(e) none of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!