CBSE Class 11 Computer Science Question 32 of 112

Dictionaries — Question 12

Back to all questions
12
Question

Question 12

A copy of the dictionary where the copy of the keys as well as the values is created for the new dictionary, is called ............... copy.

  1. key copy
  2. shallow copy
  3. deep copy
  4. partial copy
Answer

deep copy

Reason — A deep copy constructs a new compound object and then, recursively, inserts copies into it of the objects found in the original.