Shared Flashcard Set

Details

CISC 192 Chapter 16 Mesa
Back of the Book Questions
27
Computer Science
Undergraduate 2
12/06/2012

Additional Computer Science Flashcards

 


 

Cards

Term
The line containing a throw statement is known as the ________.
Definition
Throw Point
Term
The ________ block contains code that directly or indirectly might cause an exception to be thrown.
Definition
Try
Term
The ______ block handles an exception.
Definition
Catch
Term
When writing function or class templates, you use a(n) ________ to specify the generic data type.
Definition
Type Parameter
Term
The beginning of a template is marked by a(n) ______.
Definition
Template Prefix
Term
When defining objects of class templates, the ________ you wish to pass into the type parameter must be specified.
Definition
Data Type
Term
A(n) ______ template works with a specific data type.
Definition
Specialized
Term
A(n) ________ container organizes data in a sequential fashion similar to an array.
Definition
Sequence
Term
A(n) _______ container uses keys to rapidly access elements.
Definition
associative
Term
_______ are pointer like objects used to access data stored in a container.
Definition
Iterators
Term
The ________ exception is thrown when the new operator fails to allocate the requested amount of memory.
Definition
bad_alloc
Term
There can only be one catch block in a program. t/f
Definition
FALSE
Term
When an exception is thrown, but not caught, the program ignores the error. t/f
Definition
FALSE
Term
Data may be passed with an exception by storing it in members of an exception class. t/f
Definition
TRUE
Term
Once an exception has been thrown, it is not possible for the program to jump back to the throw point.
Definition
TRUE
Term
All type parameters defined in a function template must appear at least once in the function parameter list. t/f
Definition
TRUE
Term
The compiler creates an instance of a function template in memory as soon as it encounters the template. t/f
Definition
FALSE
Term
A class object passed to a function template must overload any operators used on the class object by the template. t/f
Definition
TRUE
Term
Only one generic type may be used with a template. t/f
Definition
FALSE
Term
In the function template definition, it is not necessary to use each type parameter declared in the template prefix. t/f
Definition
FALSE
Term
It is possible to overload two function templates. t/f
Definition
TRUE
Term
It is possible to overload a function template and an ordinary (nontemplate) function. t/f
Definition
TRUE
Term
A class template may not be derived from another class template. t/f
Definition
FALSE
Term
A class template may not be used as a base class. t/f
Definition
FALSE
Term
Specialized templates work with a specific data type. t/f
Definition
TRUE
Term
When defining an iterator from the STL, the compiler automatically creates the right kind, depending upon the container it is to be used with. t/f
Definition
TRUE
Term
STL algorithms are implemented as function templates. t/f
Definition
TRUE
Supporting users have an ad free experience!