0% found this document useful (0 votes)
2 views

MCQ on Dictionary in Python - ANS[1]

The document contains a list of multiple-choice questions and answers related to dictionaries in programming. It covers various aspects such as dictionary methods, syntax, and properties. The answers are provided in a numbered format corresponding to the questions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

MCQ on Dictionary in Python - ANS[1]

The document contains a list of multiple-choice questions and answers related to dictionaries in programming. It covers various aspects such as dictionary methods, syntax, and properties. The answers are provided in a numbered format corresponding to the questions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

MCQ on Dictionary - ANSWERS

1. unique 48. clear( )


2. Both a and c 49. It will merge all the elements of
3. pop( ) dictionary ‘D2’ in dictionary ‘D1’.
4. True 50. D1.get(7)
5. False 51. Cat
6. d1 = { } 52. dict( )
7. Mapping 53. Suman
8. True 54. Ravi
9. Error 55. Both of the above
10. True 56. (1, 2, 3, 4)
11. Dictionary 57. Both of the above
12. Colon (:) 58. 34
13. Comma( ,) 59. Membership Operator
14. False 60. False
15. d={ } 61. D1.update(D2)
16. Keys 62. D = {“Jan” : 31, “Feb” : 28, “Mar” :
17. Immutable 31}
18. KeyError
19. {‘a’: ‘Anar’, ‘b’: ‘Banana’, ‘c’: ‘Cat’}
20. loop
21. List
22. {‘A’ : ‘Apple’ , ‘B’ : ‘Bat’ , ‘C’ : ‘Cat’ ,
‘D’ : ‘Doll’}
23. Key Not Found
24. a.
25. It will add value in between of the
dictionary.
26. True
27. Nested Dictionary
28. return
29. del ( )
30. TwoOne
31. Dictionary
32. item
33. A and R are true and R is the correct
explanation of A
34. All of the above
35. A is True and Statement B is False
36. False
37. Error
38. len( )
39. dict( )
40. list
41. All of the above
42. print(A.Items( ))
43. a and b
44. get( )
45. None
46. update( )
47. del

You might also like