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

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

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

Free
(True/False)
4.8/5
(36)
Correct Answer:
Verified

True

To handle an exception that has been thrown, a program must have a(n) _________________.

Free
(Multiple Choice)
4.7/5
(36)
Correct Answer:
Verified

B

A program may not contain both a "regular" version of a function and a template version of the function.

Free
(True/False)
4.8/5
(30)
Correct Answer:
Verified

False

The three sequence container objects provided by the STL are:

(Multiple Choice)
5.0/5
(32)

The beginning of a function template is marked by a

(Multiple Choice)
4.7/5
(29)

How much memory is reserved for a function template?

(Multiple Choice)
4.7/5
(33)

The Standard Template Library (STL) contains templates for useful algorithms and data structures.

(True/False)
4.8/5
(30)

The algorithms provided by the STL are implemented as _____________, and perform various operations on elements of containers.

(Multiple Choice)
5.0/5
(38)

An exception thrown from outside a try block

(Multiple Choice)
4.7/5
(41)

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

(Multiple Choice)
4.8/5
(30)

If an exception is thrown by a member function of a class object, then the class __________ is called.

(Multiple Choice)
4.8/5
(35)

In the following statement template < class T > What does T represent?

(Multiple Choice)
4.9/5
(38)

This is a "generic" function that can work with any data type.

(Multiple Choice)
4.9/5
(38)

In a function template, the programmer substitutes _________ for __________.

(Multiple Choice)
4.8/5
(39)

Types of iterators are

(Multiple Choice)
4.7/5
(37)

When an error occurs, an exception is

(Multiple Choice)
4.9/5
(34)

The most important data structures in the STL are _______ and _________.

(Multiple Choice)
4.9/5
(50)

The try/catch/throw construct is able to handle only one type of exception in a try block.

(True/False)
4.9/5
(38)

Two types of container classes in the STL are:

(Multiple Choice)
4.8/5
(41)

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

(True/False)
4.9/5
(30)
Showing 1 - 20 of 39
close modal

Filters

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