Python Multiple Choice Questions (Test 3) January 31, 2025September 10, 2024 by Naman Python Multiple Choice Questions (Test 3) 1 / 20 What will be the output after the following statements? x = [5, 4, 3, 2] x.insert(1, 0) print(x) [5, 1, 3, 2, 0] [5, 0, 4, 3, 2] [0, 5, 4, 3, 2] . [1, 5, 4, 3, 2] 2 / 20 What will be the output after the following statements? x = [5, 4, 3, 2] x.append(1) print(x) [5, 4, 3, 2] 5, 4, 3, 2, 1 5432 [5, 4, 3, 2, 1] 3 / 20 What will be the output after the following statements? x = [5, 4, 3, 2] print(x) [5, 4, 3, 2] 5, 4, 3, 2 5432 (5, 4, 3, 2) 4 / 20 What will be the output after the following statements? x = [15, 45, 85, 95] print(x[3]-x[1]) 30 40 50 10 5 / 20 What will be the output after the following statements? x = 3 y = 4 print(x*y) 3 4 3 4 12 6 / 20 What will be the output after the following statements? x = [[0.0, 1.0, 2.0],[4.0, 5.0, 6.0]] y = x[0][1] + x[1][0] print(y) 1.0 4.0 5.0 6.0 7 / 20 What will be the output after the following statements? x = [[0.0, 1.0, 2.0],[4.0, 5.0, 6.0]] y = x[1][2] print(y) . 0.0 1.0 5.0 6.0 8 / 20 What will be the output after the following statements? x = ['Sunday', 'Monday', 'Tuesday'] y = x[1] + x[2] print(y) MondayTuesday SundayMonday SunMonday Monday Tuesday 9 / 20 What will be the output after the following statements? x = [10, 20, 30] y = x[1] + x[2] print(y) 20 30 40 50 10 / 20 What will be the output after the following statements? x = [25, 35, 45] y = x[0] print(y) x0 25 35 45 11 / 20 What will be the output after the following statements? x = ['Today', 'Tomorrow', 'Yesterday'] y = x[1] print(y) x1 Today Tomorrow Yesterday 12 / 20 What is the data type of x after the following statement? x = ['Today', 'Tomorrow', 'Yesterday'] List Dictionary Tuple String 13 / 20 What is the data type of x after the following statement? x = [7, 8, 9, 10] List Dictionary Tuple String 14 / 20 What will be the value of x, y and z after the following statement? x, y, z = 3, 4, 5 All three will have the value of 3 All three will have the value of 345 x will have the value of 3, y will have the value 4 and z will have the value of 5 x and y will have arbitrary values, while z will have the value of 345 15 / 20 . What will be the value of x, y and z after the following statement? x = y = z = 300 All three will have the value of 3 All three will have the value of 100 All three will have the value of 300 x and y will have arbitrary values, while z will have the value of 300 16 / 20 What will be the output after the following statements? x = y = z = 8 print(y) x 8 z y 17 / 20 What will be the data type of y after the following statements? x = 48 y = str(x) Float String List Integer 18 / 20 What will be the data type of y after the following statements? x = 71 y = float(x) Float String List Integer 19 / 20 What will be the data type of y after the following statements if input entered is 50? x = input('Enter a number: ') y = int(x) Float String List Integer 20 / 20 What will be the data type of x after the following statement if input entered is 18 ? x = input('Enter a number: ') Float String List Integer Your score isThe average score is 76% 0% Restart quiz