

MCQOPTIONS
Saved Bookmarks
This section includes 5 Mcqs, each offering curated multiple-choice questions to sharpen your C++ Programming knowledge and support exam preparation. Choose a topic below to get started.
1. |
Header file used for exception handling in C++? |
A. | <cstdlib> |
B. | <string> |
C. | <handler> |
D. | <exception> |
Answer» E. | |
2. |
An uncaught handler returns to _______________ |
A. | main function |
B. | its caller |
C. | its callee |
D. | waits there for some time |
Answer» D. waits there for some time | |
3. |
Uncaught exception leads to ______________ |
A. | termination of program |
B. | successful execution of programs |
C. | no effect on the program |
D. | execution of other functions of the program starts |
Answer» B. successful execution of programs | |
4. |
What id the syntax for catching any type of exceptions? |
A. | catch(Exception e) |
B. | catch(...) |
C. | catch(Exception ALL) |
D. | catch(ALL) |
Answer» C. catch(Exception ALL) | |
5. |
Where should we place catch block of the derived class in a try-catch block? |
A. | Before the catch block of Base class |
B. | After the catch block of Base class |
C. | Anywhere in the sequence of catch blocks |
D. | After all the catch blocks |
Answer» B. After the catch block of Base class | |