1.

What will happen when a programs throws any other type of exception other than specified?(a) terminate(b) arise an error(c) run(d) throwThe question was posed to me during an internship interview.The doubt is from Exception Specifications topic in division Derived Classes, Templates & Exception Handling in C++ of C++

Answer»

Right choice is (B) arise an error

To explain I would say: Because there is no way defined to catch that exception and as we know if an exception is not CAUGHT then error ARISES.



Discussion

No Comment Found

Related InterviewSolutions