Programming Language › Python if else MCQ › Question #3754
Single Choice Not Set

QWhat will be the output after the following statements?
a = True
b = False
c = 5 if (a == 1) else b
print(c)

ID: #3754 Python if else MCQ 378 views
Question Info
#3754Q ID
Not SetDifficulty
Python if else MCQTopic

Choose the Best Option

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

  • A True ✔ ✖
  • B False ✔ ✖
  • C b ✔ ✖
  • D 5 ✔ ✖
Correct Answer

Explanation

5

Share This Question

Challenge a friend or share with your study group.