1.

How many except statements can a try-except block have?(a) zero(b) one(c) more than one(d) more than zeroI got this question in an interview for internship.Asked question is from Exception Handling topic in chapter Classes and Objects, Inheritance, Polymorphism, Encapsulation and Exception Handling of Python

Answer» RIGHT CHOICE is (d) more than zero

To explain: There has to be at LEAST one except STATEMENT.


Discussion

No Comment Found

Related InterviewSolutions