6Which of these cannot be a dictionary key?A42B(1, 2)C'key'D[1, 2]View AnswerDiscussWorkspaceReportSaveEasy
7What is the output of the following code?d = dict(zip(['a', 'b'], [1, 2])) print(d)AErrorB{'a': 'b', 1: 2}C[('a', 1), ('b', 2)]D{'a': 1, 'b': 2}View AnswerDiscussWorkspaceReportSaveEasy
8What does d.get('k', 0) return if 'k' is not in d?A0BNoneCKeyErrorD'k'View AnswerDiscussWorkspaceReportSaveMedium
9What is the output of the following code?d = {'x': 10} d.setdefault('x', 99) d.setdefault('y', 5) print(d)A{'x': 99, 'y': 5}B{'x': 10, 'y': 5}CErrorD{'x': 10}View AnswerDiscussWorkspaceReportSaveMedium
10What is the output of the following code?d = {'b': 1, 'a': 2} print(list(d))A[1, 2]BErrorC['a', 'b']D['b', 'a']View AnswerDiscussWorkspaceReportSaveEasy