topic/Dictionaries
Start Test
Question No
Title
Type
Marks
437.
How do you check if a key is present in a dictionary?
MCQ
5
438.
How do you retrieve all keys from a dictionary?
MCQ
5
439.
What is the purpose of thedictionary.setdefault(key, default_value)method?
MCQ
5
440.
How do you remove a key-value pair from a dictionary?
MCQ
5
441.
What is the result of the expressionlen(dictionary)?
MCQ
5