Python Multiple Choice Questions (Test 1) November 24, 2024September 5, 2024 by Naman Python Multiple Choice Questions (Test 1) 1 / 20 What will be the output after the following statements?x = 5y = 7x *= yprint(x) 7 12 5 35 2 / 20 What will be the output after the following statements? x = 3y = 2x += yprint(x) 3 2 5 1 3 / 20 What will be the output after the following statements?x = 15 + 35print(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 + 7print(x) 30 15 22 247 7 / 20 What will be the output after the following statements?x = 46y = 98z = y if (y % 2 == 0) else xprint(z) True False 46 98 8 / 20 What will be the output after the following statements?x = 65y = 53z = y if (x % 2 == 0) else xprint(z) True False 65 53 9 / 20 What will be the output after the following statements?x = 50y = 10z = y if (y > x) else xprint(z) True False 50 10 10 / 20 What will be the output after the following statements?x = 20y = 40z = y if (y > x) else xprint(z) True False 20 40 11 / 20 What will be the output after the following statements?x = Truey = Falseprint(not y) True False Not defined x 12 / 20 What will be the output after the following statements?x = Truey = Falseprint(not x) True False Not defined . y 13 / 20 What will be the output after the following statements?x = Truey = Falseprint(x or y) True False Not defined xy 14 / 20 What will be the output after the following statements?x = Truey = Falseprint(x and y) True False Not defined xy 15 / 20 What will be the output after the following statements?x = 72y = 64print(x < y) True False Yes No 16 / 20 What will be the output after the following statements?x = 83y = 57print(x > y) True False Yes No 17 / 20 What will be the output after the following statements?x = 8y = 6print(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 = 3y = 7print(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 = 30y = 7x %= yprint(x) 4 28 2 37 20 / 20 What will be the output after the following statements?x = 25y = 15x -= yprint(x) 10 25 15 -15 Your score is The average score is 0% 0% Restart quiz NEXT