C++ Exception Handling Question:
Download Questions PDF

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

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

Answer:

d. Program will be terminated abnormally

Download C++ Exception Handling Interview Questions And Answers PDF

Previous QuestionNext Question
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
Functions called from within a try block may also throw exception.

a. True
b. False