Ask Question
27 December, 00:57

Which of the following statements about list copies is not true? When you make a

a. deep copy of a list, both variables refer to their own copy of the list.

b. deep copy of a list, both variables refer to the same list.

c. shallow copy of a list, both variables refer to the same list.

d. shallow copy of a list, the list is immutable.

+2
Answers (1)
  1. 27 December, 01:17
    0
    Answer: A

    Explanation: Shallow Copy if the field to be copied is a primitive type, then the value is copied more if the field to be copied is a memory address (or an object itself), or the address is copied. Thus, if the address is changed by an object, the change will be reflected everywhere.

    Deep Copy the data is copied in both situations. This approach is more loaded and slower.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Which of the following statements about list copies is not true? When you make a a. deep copy of a list, both variables refer to their own ...” in 📘 Social Studies if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers