Ask Question
13 December, 22:50

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.

+3
Answers (1)
  1. 13 December, 23:09
    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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers