CBSE Class 11 Computer Science Question 14 of 42

Practice Paper — Question 14

Back to all questions
14
Question

Question 14

The ............... method removes the last entered element from the dictionary.

  1. pop()
  2. remove()
  3. popitem()
  4. del
Answer

popitem()

Reason — The popitem() method removes and returns the last entered key-value pair from the dictionary.