This Shallow copy vs Deep copy Test helps you to Boost your Knowledge in Python Language. In this test, we will cover the topics in the form of questions like
- A nested list undergoes shallow copy even when the list as a whole undergoes deep copy.
- The modification done on one list affects the other list is known as shallow copy.The modification done on one list does not affect the other list is known as deep copy.
- he recursive algorithm and when the recursive function receives a list of length 1 which is the base case, the list is returned is implemented with Merge Sort algorithm.
- When the list as a whole undergoes deep copy, a nested list will undergo shallow copy.