21What is the output of the following code?a = [[0] * 2] * 2 a[0][0] = 5 print(a)AErrorB[[5, 0], [0, 0]]C[[5, 5], [5, 5]]D[[5, 0], [5, 0]]View AnswerDiscussWorkspaceReportSaveHard
22What is the output of the following code?a = [3, 1, 2] a.sort() print(a)A[1, 2, 3]B[3, 2, 1]C[3, 1, 2]DNoneView AnswerDiscussWorkspaceReportSaveEasy
23What is the output of the following code?a = [3, 1, 2] a.sort(reverse=True) print(a)A[3, 2, 1]B[1, 2, 3]C[2, 1, 3]DNoneView AnswerDiscussWorkspaceReportSaveEasy
24What is the output of the following code?a = [1, 2, 3] b = a[:] b[0] = 99 print(a[0])A1B99CNoneDErrorView AnswerDiscussWorkspaceReportSaveMedium
25What is the output of the following code?a = [10, 20, 30] print(a.pop(), a)A30 [10, 20]B10 [20, 30]C30 [10, 20, 30]DNone [10, 20]View AnswerDiscussWorkspaceReportSaveEasy