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

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

Types of iterators are

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

D

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

Free
(Multiple Choice)
4.9/5
(31)
Correct Answer:
Verified

C

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

Free
(Multiple Choice)
4.8/5
(35)
Correct Answer:
Verified

C

The C++ mechanism for exception handling encloses code that might throw an exception in a try block and puts exception handling code in catch blocks attached to the try block.

(True/False)
4.9/5
(46)

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

(True/False)
4.8/5
(32)

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

(Multiple Choice)
4.9/5
(38)

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

(Multiple Choice)
4.9/5
(36)

An exception is a condition that can be caused by a syntax error in the program.

(True/False)
4.8/5
(36)

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

(Multiple Choice)
4.8/5
(34)

Function templates allow you to write a single function definition that works with many different data types.

(True/False)
4.8/5
(36)

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

(Multiple Choice)
4.7/5
(43)

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

(True/False)
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.8/5
(44)

The beginning of a function template is marked by a

(Multiple Choice)
4.9/5
(39)

An associative container uses to access values stored in it.

(Multiple Choice)
4.8/5
(38)

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

(True/False)
4.9/5
(42)

A function template's prefix contains _ in angled brackets.

(Multiple Choice)
4.8/5
(38)

Two types of container classes in the STL are

(Multiple Choice)
4.7/5
(43)

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

(Multiple Choice)
4.9/5
(33)

The bad_alloc exception is thrown

(Multiple Choice)
4.8/5
(31)
Showing 1 - 20 of 40
close modal

Filters

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