Open In App
Related Articles

Python-Quizzes | Python Dictionary Quiz | Question 19

Improve Article
Improve
Save Article
Save
Like Article
Like

Question 19:Find the output of the following program:




dictionary ={1:"geek", 2:"for", 3:"geeks"
del dictionary 


(A) del deletes the entire dictionary
(B) del doesn’t exist for the dictionary
(C) del deletes the keys in the dictionary
(D) del deletes the values in the dictionary


Answer: (A)

Explanation: del deletes the entire dictionary and any further attempt to access it will throw an error.

Quiz of this Question

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 17 Sep, 2020
Like Article
Save Article
Previous
Next
Similar Reads