Ch. 16 Exceptions, Templates, and the Standard Template Library Flashcards
The line containing a throw statement is known as the ________.
Throw Point
The ________ block contains code that directly or indirectly might cause an exception to be thrown.
Try
The ______ block handles an exception.
Catch
When writing function or class templates, you use a(n) ________ to specify the generic data type.
Type Parameter
The beginning of a template is marked by a(n) ______.
Template Prefix
When defining objects of class templates, the ________ you wish to pass into the type parameter must be specified.
Data Type
A(n) ______ template works with a specific data type.
Specialized
A(n) ________ container organizes data in a sequential fashion similar to an array.
Sequence
A(n) _______ container uses keys to rapidly access elements.
associative
_______ are pointer like objects used to access data stored in a container.
Iterators
The ________ exception is thrown when the new operator fails to allocate the requested amount of memory.
bad_alloc
There can only be one catch block in a program. t/f
false
When an exception is thrown, but not caught, the program ignores the error. t/f
false
Data may be passed with an exception by storing it in members of an exception class. t/f
true
Once an exception has been thrown, it is not possible for the program to jump back to the throw point.
true