MCQ Practice Single Best Answer Topic: Python Operator MCQ

Q What will be the output after the following statements?
x = 20
y = 40
z = y if (y > x) else x
print(z)

Question ID
#3418
Subchapter
Python Operator MCQ
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A True
  • B False
  • C 20
  • D 40
Correct Answer: D

Explanation

40

Share This Question

Share this MCQ with your friends or study group.