Single Choice Difficult

QWhich of the following execption occurs, when an undefined object is accessed?

ID: #20265 Create Objects in Python 129 views
Question Info
#20265Q ID
DifficultDifficulty
Create Objects in PythonTopic

Choose the Best Option

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

  • A UndefinedError ✔ ✖
  • B VariableError ✔ ✖
  • C NameError ✔ ✖
  • D NonObjectError ✔ ✖
Correct Answer

Explanation

The exception that occurs when an undefined object is accessed in Python is:


NameError

So, the correct answer is: NameError

Share This Question

Challenge a friend or share with your study group.