Exception Handling
Description: Exception Handling | |
Number of Questions: 15 | |
Created by: Sanjiv Memon | |
Tags: Exception Handling Java/Oracle /C/C++ |
In exception handling, which block throws an exception?
An exception is a _____________.
Which of the following is not an example of exception?
In C++, the character type wchar_t is used to hold _______ wide character.
Which of the following statements is used to rethrow an exception?
In order to make the C++ as a generic programming language, Alexander Stepanov and Meng Lee developed a set of general purpose templatised classes and functions. The collection of these classes and functions is called _____________.
Which keyword allows the constant function to modify a particular data item only?
Which of the following is the correct sequence of statements for handling an error? A. Throw the exception B. Handle the exception C. Hit the exception D. Catch the exception
________________ is to used to find the exact type of the object using a pointer to the base class.
___________ defines a scope of the identifiers that are used in a program.
When there is a requirement to convert a const(constant) to non-const(non constant), which keyword is to be used?
Which of the following statements is/are correct? A. Multiple catch clauses with one try block. B. Catch block only catches the exception.
Which of the following statements is/are correct? A. We can create a reference to an array. B. A reference is implicitly treated as constant pointer.
The exception that is uncaught invokes the function _______.
What is the meaning of following catch block? catch(...) { Statements; }