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
(72)
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
(87)
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
(81)
Correct Answer:
Verified

True

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

(True/False)
4.9/5
(82)

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

(True/False)
4.8/5
(77)

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

(Multiple Choice)
4.9/5
(77)

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

(Multiple Choice)
4.9/5
(73)

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

(True/False)
4.9/5
(89)

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

(Multiple Choice)
4.9/5
(77)

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

(True/False)
5.0/5
(88)

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

(Multiple Choice)
4.8/5
(78)

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
(74)

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
(82)

The three sequence container objects provided by the STL are

(Multiple Choice)
4.7/5
(86)

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

(True/False)
4.7/5
(70)

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

(Multiple Choice)
4.9/5
(80)

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

(Multiple Choice)
4.9/5
(95)

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

(Multiple Choice)
4.8/5
(69)

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

(Multiple Choice)
4.7/5
(87)

To use the map class, you must include

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

Filters

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