Multiple Choice
The bad_alloc exception is thrown
A) when program code encounters a bad memory location.
B) by the new operator.
C) when you forget to free memory with the delete operator.
D) only when the program contains a catch block.
E) None of the above
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q11: Types of iterators are<br>A) input and output.<br>B)
Q12: Function templates allow you to write a
Q13: A program may not contain a "regular"
Q14: Using a function template often requires writing
Q15: A catch block serves as<br>A) an exception
Q17: A(n) _ is used in a function
Q18: In the statement template <class T>, what
Q19: The C++ mechanism for exception handling encloses
Q20: When an error occurs, an exception is<br>A)
Q21: The most important data structures in the