1. Home
  2. Data Science
  3. Python
  4. Which module provides deepcopy() for copying nested…

Added 25 Nov 2026

Which module provides deepcopy() for copying nested objects in Python?

  1. deepcopy
  2. copy Correct answer
  3. clone
  4. shutil only

Correct answer

B. copy

5 views

MCQSEXAM

Explanation

copy.deepcopy() recursively copies nested objects so they do not share references.

Reference

Asked in: Python Interview Lists

https://docs.python.org/3/tutorial/datastructures.html

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs