Multiple Choice
Which statement about class unique_ptr (of the new C++ standard) and dynamic memory allocation is false?
A) An object of class unique_ptr maintains a pointer to dynamically allocated memory.
B) When a unique_ptr object destructor is called (for example, when a unique_ptr object goes out of scope) , it performs a destroy operation on its pointer data member.
C) Class template unique_ptr provides overloaded operators * and -> so that a unique_ptr object can be used just as a regular pointer variable is.
D) Class unique_ptr is part of the new C++ standard and it replaces the deprecated auto_ptr class.
Correct Answer:

Verified
Correct Answer:
Verified
Q4: The try block cannot:<br>A) Enclose the code
Q5: To rethrow an exception, the exception handler
Q6: Catch blocks are not required to contain:<br>A)
Q7: To initialize a unique_ptr, you can use
Q8: Select the false statement. The new operator:<br>A)
Q10: An advantage of using inheritance with exceptions
Q11: An exception:<br>A) Terminates program execution.<br>B) Terminates the
Q12: Exception handling may allow a program to:<br>A)
Q13: Exception handling should not be used:<br>A) As
Q14: Once an exception is thrown, when can