Exam 16: Exceptions, Templates, and the Standard Template Library Stl

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

The most important data structures in the STL are ________ and ________.

(Multiple Choice)
4.8/5
(65)

The three sequential container objects currently provided by the STL are

(Multiple Choice)
4.8/5
(74)

The STL vector and list classes are examples of sequential containers.

(True/False)
4.8/5
(81)

A ________ is a "generic" function that can work with different data types.

(Multiple Choice)
4.7/5
(83)

________ are used to signal errors or unexpected events that occur while a program is running.

(Multiple Choice)
4.9/5
(71)

A(n)________ is a class that stores data and organizes it in some fashion.

(Multiple Choice)
4.9/5
(69)

All type parameters defined in a function template must appear at least once in the

(Multiple Choice)
4.9/5
(72)

The line containing a throw statement is known as the throw point.

(True/False)
4.9/5
(81)

Class templates allow you to create one general version of a class without having to

(Multiple Choice)
4.8/5
(77)

At most one catch block may be attached to a single try block.

(True/False)
4.8/5
(78)

A try block must immediately be followed by one or more

(Multiple Choice)
4.9/5
(85)

Iterators are objects that are similar to pointers.

(True/False)
4.8/5
(80)

There is no difference between defining an object of an ordinary class and an object of a template class.

(True/False)
4.9/5
(79)

In the statement template <class T>, what does T represent?

(Multiple Choice)
4.9/5
(81)

If an exception is not caught, it is stored for later use.

(True/False)
4.9/5
(70)

An associative container uses ________ to access values stored in it.

(Multiple Choice)
4.9/5
(92)

How much memory is reserved for a function template?

(Multiple Choice)
4.7/5
(82)

An actual instance of a template function is created in memory when the compiler encounters

(Multiple Choice)
4.9/5
(70)

A thrown exception for which there is no matching catch block will cause the execution of the program to abort.

(True/False)
4.9/5
(81)

The beginning of a function template is marked by a

(Multiple Choice)
4.9/5
(79)
Showing 21 - 40 of 40
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)