(A) Yes
(B) No
Tag: C++ Mcqs
How do we define the user defined exceptions?
(A) Inheriting class functionality
(B) Deleting and adding class member
(C) Overriding class functionality
(D) Inheriting and overriding exception class functionality
What will happen when handlers is not found for an exception?
(A) Raise an error
(B) Calls the standard library function terminate()
(C) Executes the remaining block
(D) Raise an error and executes the remaining block
To where does the program control transfers when the exception is arisen?
(A) handlers
(B) catch
(C) try
(D) throw
An exception is thrown using __ keyword in CPP.
(A) thrown
(B) threw
(C) throw
(D) throws
Exception handlers are declared with __ keyword.
(A) throw
(B) finally
(C) catch
(D) try
Can we define our exceptions in CPP?
(A) Yes
(B) No
The code of statements which may cause abnormal termination of the program should be written under __ block.
(A) Finally
(B) Catch
(C) Try
(D) None of the above