Exam 17: The Standard Template Library

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

The difference between the unordered_multimap class and the multimap class is that

(Multiple Choice)
4.7/5
(30)

A function object is an object that acts like a function and is also known as a functor.

(True/False)
4.7/5
(31)

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

(Multiple Choice)
4.8/5
(38)

You can use the name of a function to get that function's address in memory and, therefore, get a function pointer to point to the function's executable code.

(True/False)
4.8/5
(37)

The most important data structures in the STL are __________

(Multiple Choice)
4.8/5
(32)

When you declare an iterator to work with a container, the compiler automatically chooses the right type.

(True/False)
4.9/5
(41)

The STL provides many algorithms which are implemented as function templates and are included in the <algorithm> header file.

(True/False)
4.8/5
(26)

Select all that apply. Which of the following are member functions of the vector class that use emplacement?

(Multiple Choice)
4.9/5
(38)

In a mapping, each element must have one of the following two parts: either a key or a value.

(True/False)
4.9/5
(35)

Two types of container classes in the STL are

(Multiple Choice)
4.8/5
(28)

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

(Multiple Choice)
4.7/5
(30)

Because a vector container uses a dynamically allocated array to hold its elements, it is common for the vector class to allocate

(Multiple Choice)
4.9/5
(33)

An iterator of the iterator type that gives you read/write access to the element to which the iterator points is known as a(n)

(Multiple Choice)
4.9/5
(43)

An associative container uses __________ to access elements rapidly.

(Multiple Choice)
4.9/5
(32)

A set is an associative container containing elements that must all be unique.

(True/False)
4.7/5
(44)

The vector class has a ________ member function which can be used to request an increase in the vector's capacity and a __________ member function to decrease a vector's capacity.

(Multiple Choice)
4.9/5
(35)

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

(Multiple Choice)
4.8/5
(30)

An iterator is a function that is used to access items in an array.

(True/False)
4.8/5
(42)
Showing 21 - 38 of 38
close modal

Filters

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