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

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

A sequential container organizes data in a sequential fashion, similar to an array or linked list.

(True/False)
4.8/5
(33)

A try block must immediately be followed by one or more

(Multiple Choice)
4.8/5
(35)

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

(Multiple Choice)
4.7/5
(36)

Iterators are objects that are similar to pointers.

(True/False)
5.0/5
(45)

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

(Multiple Choice)
4.9/5
(31)

To catch an exception, a program must

(Multiple Choice)
4.8/5
(45)

How much memory is reserved for a function template?

(Multiple Choice)
4.9/5
(38)

When an error occurs, an exception is

(Multiple Choice)
4.9/5
(31)

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

(True/False)
4.7/5
(38)

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

(True/False)
4.9/5
(40)

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

(True/False)
4.8/5
(36)

A program may not contain a "regular" version of a function and a template version of the function at the same time.

(True/False)
4.9/5
(46)

The three sequential container objects currently provided by the STL are

(Multiple Choice)
4.8/5
(35)

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

(Multiple Choice)
4.7/5
(49)

A catch block serves as

(Multiple Choice)
4.9/5
(27)

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

(Multiple Choice)
4.8/5
(39)

Using a function template often requires writing less code than overloading a function.

(True/False)
4.9/5
(36)

In a function template, the programmer substitutes for .

(Multiple Choice)
4.8/5
(35)

Non- template functions have a slight advantage in speed over template functions.

(True/False)
4.8/5
(37)

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

(Multiple Choice)
4.7/5
(45)
Showing 21 - 40 of 40
close modal

Filters

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