Exam 17: The Standard Template Library

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

A sequence container that is dynamic in size is a(n)

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

C

When an element is stored in a map, it is stored as an object of the __________ type.

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

C

To improve runtime performance, C++11 introduced a new family of member functions that use the emplacement technique to insert new elements.

Free
(True/False)
4.9/5
(38)
Correct Answer:
Verified

True

A sequence container organizes data in a sequential fashion, similar to an array.

(True/False)
4.9/5
(38)

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

(True/False)
4.8/5
(32)

Select all that apply. An object of a class that overloads the function call operator is a(n)

(Multiple Choice)
4.8/5
(27)

Select all that apply. Which of the following are types of iterators?

(Multiple Choice)
4.9/5
(34)

A vector is an associative container that works like an array but is dynamic in size.

(True/False)
4.9/5
(37)

To use the binary_search() algorithm you need to include ___________

(Multiple Choice)
4.9/5
(38)

Because the array class's [] operator will perform bounds checking, it is acceptable to use a subscript that is out of bounds.

(True/False)
4.9/5
(37)

Select all that apply. Which of the following statement(s) is(are) not true?

(Multiple Choice)
4.8/5
(31)

To retrieve a value from a map, you call the __________ member function and pass the __________ that is associated with the desired value.

(Multiple Choice)
4.7/5
(26)

An associative container stores data in a nonsequential way so it is slower to locate elements than a sequence container.

(True/False)
4.8/5
(35)

The three sequence container objects provided by the STL are

(Multiple Choice)
4.7/5
(39)

A mutable iterator gives you read/write access to the element to which the iterator points.

(True/False)
4.7/5
(32)

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

(Multiple Choice)
4.8/5
(33)

Which of the following defines an array object that holds three strings?

(Multiple Choice)
4.9/5
(41)

A technique introduced by C++11 to improve runtime performance is known as

(Multiple Choice)
4.8/5
(24)

Which of the following types of iterators is(are) not supported by the vector class?

(Multiple Choice)
4.7/5
(45)

To use the map class, you must include

(Multiple Choice)
4.9/5
(37)
Showing 1 - 20 of 38
close modal

Filters

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