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

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

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

(Multiple Choice)
4.8/5
(41)

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

(True/False)
4.9/5
(38)

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

(True/False)
4.9/5
(36)

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

(Multiple Choice)
4.7/5
(29)

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

(Multiple Choice)
4.9/5
(40)

In the following statement:In the following statement:  What does the word class indicate? What does the word class indicate?

(Multiple Choice)
4.8/5
(39)

A function template prefix is placed before the function header. A class template prefix is placed ________.

(Multiple Choice)
4.9/5
(43)

A(n)________ is like a pointer. It is used to access the individual data elements in a container.

(Multiple Choice)
4.8/5
(48)

When an error occurs, an exception is ________.

(Multiple Choice)
4.8/5
(40)

The beginning of a function template is marked by a ________.

(Multiple Choice)
4.8/5
(34)

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

(Multiple Choice)
4.8/5
(46)

In a function template, the programmer substitutes ________ for ________.

(Multiple Choice)
4.8/5
(40)

An actual instance of the function is created in memory when the compiler encounters ________.

(Multiple Choice)
4.9/5
(28)

An associative container uses ________ to access elements rapidly.

(Multiple Choice)
4.7/5
(46)

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

(True/False)
4.8/5
(28)

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

(Multiple Choice)
4.8/5
(48)

A(n)________ is used in a function template to specify a generic data type.

(Multiple Choice)
4.8/5
(35)

An exception thrown from outside a try block ________.

(Multiple Choice)
4.8/5
(45)

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

(Multiple Choice)
5.0/5
(38)
Showing 21 - 39 of 39
close modal

Filters

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