MCQ Single Best Answer Not Set

QWhat will be the output after the following statements?
def abc():
    x = 10
    print(x)
abc()
x = 12

ID: #3969 Python Functions MCQ 385 views
Question Info
#3969Q ID
Not SetDifficulty
Python Functions MCQTopic

Choose the Best Option

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

  • A NameError
  • B 12
  • C 10
Correct Answer: Option C

Explanation

10

Share This Question

Challenge a friend or share with your study group.