1.

Which of the following is not a standard exception in Python?(a) NameError(b) IOError(c) AssignmentError(d) ValueErrorThis question was posed to me in my homework.My question is from Exception Handling topic in section Classes and Objects, Inheritance, Polymorphism, Encapsulation and Exception Handling of Python

Answer»

Correct option is (C) AssignmentError

To explain: NAMEERROR, IOError and VALUEERROR are standard EXCEPTIONS in Python whereas Assignment error is not a standard exception in Python.



Discussion

No Comment Found

Related InterviewSolutions