C++ Exception Handling Question:
Download Questions PDF

In nested try block, if inner catch handler gets executed, then______________

a. Program execution stops immediately
b. Outer catch handler will also get executed
c. Compiler will jump to the outer catch handler and then executes remaining executable statements of main()
d. Compiler will execute remaining executable statements of outer try block and then the main()

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

Answer:

d. Compiler will execute remaining executable statements of outer try block and then the main()

Download C++ Exception Handling Interview Questions And Answers PDF

Previous QuestionNext Question
In nested try blocks, there is no need to specify catch handler for inner try block. Outer catch handler is sufficient for the program.

a. True
b. False
Generic catch handler must be placed at the end of all the catch handlers.

a. True
b. False