Python Quiz – Dictionary in Python Welcome to your Python Quiz - Dictionary in Python Name Email 1. Why we use dictionary ? To store raw value To store key-value in pair To store all key at one place To store all value at one place None 2. We can access an element using index number such as 0,1,2…. , in Python dictionary Yes, we can access No, direct indexing does not work None 3. Empty Dictionary and Set are created using same syntax ( { } ) in Python Yes No None 4. Dictionary can hold multiple keys Yes No None 5. Dictionary can hold multiple value Yes No None 6. Keys() and values() method provides all the keys and values for a given dictionary separately Yes No None 7. Items () method will provide all the keys-value pair of a dictionary Yes No None 8. We can update any key or value of a dictionary directly Yes No None 9. Pop () method takes key as an argument to remove that particular key-value pair Yes No None 10. Popitems() remove any random key-value pair from the dictionary Yes No None 11. What is the length of a dictionary with 10 keys and 10 value pair 20 10 None 12. Clear and del does the same work when applied on a dictionary Yes No None 1 out of 1 Related Posts