11What is the output of the following code?t = 1, 2, 3 print(type(t).__name__)AintBlistCtupleDErrorView AnswerDiscussWorkspaceReportSaveEasy
12What is the output of the following code?t = (1, 2, 3, 4, 5) print(t[1:4])A[2, 3, 4]B(1, 2, 3, 4)C(2, 3, 4)D(2, 3)View AnswerDiscussWorkspaceReportSaveEasy
13What is the output of the following code?t = (1, 2, 3) print(t[1], len(t))A1 3B2 3CErrorD2 2View AnswerDiscussWorkspaceReportSaveEasy
14What is the output of the following code?x, y = 3, 4 print((x, y) < (3, 5))ATrueBFalseCErrorDNoneView AnswerDiscussWorkspaceReportSaveMedium
15Why can a tuple be used as a dictionary key but a list cannot?ATuples have fixed length 2BLists are orderedCTuples are immutable and hashableDTuples are fasterView AnswerDiscussWorkspaceReportSaveEasy