MCQ Single Best Answer Not Set

QWhat will be the output after the following statements?
x = 40
if x > 10:
    print(20)
elif x == 40:
    print(10)
else:
    print(30)

ID: #3491 Python if else MCQ 590 views
Question Info
#3491Q ID
Not SetDifficulty
Python if else MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 20
  • B 40
  • C 10
  • D 30
Correct Answer: Option A

Explanation

20

Share This Question

Challenge a friend or share with your study group.