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.9/5
(28)

The three sequential container objects currently provided by the STL are

(Multiple Choice)
4.8/5
(29)

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

(True/False)
4.8/5
(34)

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

(Multiple Choice)
4.7/5
(37)

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

(Multiple Choice)
4.9/5
(27)

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

(Multiple Choice)
4.9/5
(22)

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

(Multiple Choice)
4.9/5
(26)

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

(True/False)
4.9/5
(37)

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

(Multiple Choice)
4.8/5
(33)

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

(True/False)
4.8/5
(35)

A try block must immediately be followed by one or more

(Multiple Choice)
4.9/5
(42)

Iterators are objects that are similar to pointers.

(True/False)
4.8/5
(35)

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

(True/False)
4.9/5
(33)

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

(Multiple Choice)
4.9/5
(40)

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

(True/False)
4.8/5
(28)

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

(Multiple Choice)
5.0/5
(41)

How much memory is reserved for a function template?

(Multiple Choice)
4.7/5
(34)

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

(Multiple Choice)
4.8/5
(32)

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
(41)

The beginning of a function template is marked by a

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

Filters

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