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 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 3 Empty Dictionary and Set are created using same syntax ( { } ) in Python Yes No 4 Dictionary can hold multiple keys Yes No 5 Dictionary can hold multiple value Yes No 6 Keys() and values() method provides all the keys and values for a given dictionary separately Yes No 7 Items () method will provide all the keys-value pair of a dictionary Yes No 8 We can update any key or value of a dictionary directly Yes No 9 Pop () method takes key as an argument to remove that particular key-value pair Yes No 10 Popitems() remove any random key-value pair from the dictionary Yes No 11 What is the length of a dictionary with 10 keys and 10 value pair 20 10 12 Clear and del does the same work when applied on a dictionary Yes No 2 out of 1 Related Posts