MCQOPTIONS
Saved Bookmarks
This section includes 3 Mcqs, each offering curated multiple-choice questions to sharpen your Python knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
In ____________________ copy, the modification done on one list affects the other list. In ____________________ copy, the modification done on one list does not affect the other list. |
| A. | shallow, deep |
| B. | memberwise, shallow |
| C. | deep, shallow |
| D. | deep, memberwise |
| Answer» B. memberwise, shallow | |
| 2. |
The nested list undergoes shallow copy even when the list as a whole undergoes deep copy. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 3. |
In _______________ copy, the base address of the objects are copied. In _______________ copy, the base address of the objects are not copied. |
| A. | deep. shallow |
| B. | memberwise, shallow |
| C. | shallow, deep |
| D. | deep, memberwise |
| Answer» D. deep, memberwise | |