1.

An exception is ____________(a) an object(b) a special function(c) a standard module(d) a moduleI have been asked this question during an interview for a job.This interesting question is from Exception Handling topic in chapter Classes and Objects, Inheritance, Polymorphism, Encapsulation and Exception Handling of Python

Answer»

The CORRECT option is (a) an OBJECT

The BEST explanation: An exception is an object that is raised by a FUNCTION signaling that an unexpected situation has OCCURRED, that the function itself cannot handle.



Discussion

No Comment Found

Related InterviewSolutions