⟩ Which of the following are NOT provided by the compiler by default? A. Zero-argument Constructor B. Destructor C. Copy Constructor D. Copy Destructor
Option D
Copy Destructor
Option D
Copy Destructor
Explain benefits of Exception Handling?
What is Asynchronous Exceptions?
What is Synchronous Exceptions?
Describe exceptions in C++?
Which of the following statements are true about Catch handler? 1. It must be placed immediately after try block T 2. It can have multiple parameters 3. There must be only one catch handler for every try block 4. There can be multiple catch handler for a try block T 5. Generic catch handler can be placed anywhere after try block. a. Only 1, 4, 5 b. Only 1, 2, 3 c. Only 1, 4 d. Only 1, 2
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 is represented by ______________. a. catch(..,) b. catch(---) c. catch(…) d. catch( void x)
Attempting to throw an exception that is not supported by a function call results in calling _____________ library function. a. indeterminate() b. unutilized() c. unexpected() d. unpredicted()
Throwing an unhandled exception causes standard library function _______________ to be invoked. a. stop() b. aborted() c. terminate() d. abandon()
How can we restrict a function to throw certain exceptions? a. Defining multiple try and catch block inside a function b. Defining generic function within try block c. Defining function with throw clause d. It is not possible in CPP to restrict a function