C++ Exception Handling Question:
Download Questions PDF

If inner catch handler is not able to handle the exception then__________.

a. Compiler will look for outer try handler
b. Program terminates abnormally
c. Compiler will check for appropriate catch handler of outer try block
d. None of these

C++ Exception Handling Interview Question
C++ Exception Handling Interview Question

Answer:

c. Compiler will check for appropriate catch handler of outer try block

Download C++ Exception Handling Interview Questions And Answers PDF

Previous QuestionNext Question
Generic catch handler must be placed at the end of all the catch handlers.

a. True
b. False
In nested try blocks, if both inner and outer catch handlers are not able to handle the exception, then______________.

a. Compiler executes only executable statements of main()
b. Compiler issues compile time errors about it
c. Program will be executed without any interrupt
d. Program will be terminated abnormally