Python Multiple Choice Questions (Test 1) January 31, 2025September 5, 2024 by Naman Python Multiple Choice Questions (Test 1) 1 / 20 What will be the output after the following statements? x = 5 y = 7 x *= y print(x) 7 12 5 35 2 / 20 What will be the output after the following statements? x = 3 y = 2 x += y print(x) 3 2 5 1 3 / 20 What will be the output after the following statements? x = 15 + 35 print(x) 40 153 50 1535 4 / 20 What will be the output after the following statements? x = ’24’ + ’16’ print(x) 40 2416 21 46 5 / 20 What will be the output after the following statements? x = 7 * (4 + 5) print(x) 63 16 33 35 6 / 20 What will be the output after the following statements? x = 2 * 4 + 7 print(x) 30 15 22 247 7 / 20 What will be the output after the following statements? x = 46 y = 98 z = y if (y % 2 == 0) else x print(z) True False 46 98 8 / 20 What will be the output after the following statements? x = 65 y = 53 z = y if (x % 2 == 0) else x print(z) True False 65 53 9 / 20 What will be the output after the following statements? x = 50 y = 10 z = y if (y > x) else x print(z) True False 50 10 10 / 20 What will be the output after the following statements? x = 20 y = 40 z = y if (y > x) else x print(z) True False 20 40 11 / 20 What will be the output after the following statements? x = True y = False print(not y) True False Not defined x 12 / 20 What will be the output after the following statements? x = True y = False print(not x) True False Not defined . y 13 / 20 What will be the output after the following statements? x = True y = False print(x or y) True False Not defined xy 14 / 20 What will be the output after the following statements? x = True y = False print(x and y) True False Not defined xy 15 / 20 What will be the output after the following statements? x = 72 y = 64 print(x < y) True False Yes No 16 / 20 What will be the output after the following statements? x = 83 y = 57 print(x > y) True False Yes No 17 / 20 What will be the output after the following statements? x = 8 y = 6 print(x != y) y = 6 and x = 8 True x = 6 and y = 6 False 18 / 20 What will be the output after the following statements? x = 3 y = 7 print(x == y) y = 7 and x = 3 True x = 3 and y = 3 False 19 / 20 What will be the output after the following statements? x = 30 y = 7 x %= y print(x) 4 28 2 37 20 / 20 What will be the output after the following statements? x = 25 y = 15 x -= y print(x) 10 25 15 -15 Your score is The average score is 61% 0% Restart quiz