16What is the output of the following code?matrix = [[1, 2], [3, 4]] print(matrix[1][0])A2B3C4D1View AnswerDiscussWorkspaceReportSaveEasy
17What is the output of the following code?a = [1, 2, 3] a[1:2] = [7, 8, 9] print(a)A[1, 7, 8, 9, 3]BErrorC[7, 8, 9]D[1, 7, 3]View AnswerDiscussWorkspaceReportSaveMedium
18What is the output of the following code?a = [1, 2] a.extend([3, 4]) print(a)A[3, 4, 1, 2]B[1, 2, 3, 4]C[1, 2]D[1, 2, [3, 4]]View AnswerDiscussWorkspaceReportSaveEasy
19What is the output of the following code?a = [0] * 3 print(a)A[0, 0, 0]B[0]C0D[0, 3]View AnswerDiscussWorkspaceReportSaveEasy
20What is the output of the following code?a = [[0] * 2] * 2 a[0][0] = 5 print(a)AErrorB[[5, 0], [0, 0]]C[[5, 0], [5, 0]]D[[5, 5], [5, 5]]View AnswerDiscussWorkspaceReportSaveHard