Exam 13: Standard Template Library (STL) II

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

The function remove is used to remove the elements from a sequence by using some criteria.

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

False

The only difference between the containers map and multimap is that the container map allows duplicates, whereas the multimap container does not.

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

False

The STL relational function objects can also be applied to containers.

Free
(True/False)
4.7/5
(35)
Correct Answer:
Verified

True

The algorithms includes (subset), set_intersection, set_union, set_difference, and set_symmetric_difference assume that the elements within each given range are not sorted.

(True/False)
4.8/5
(28)

The general syntax to declare an object of type pair is ____.

(Multiple Choice)
4.8/5
(36)

The default ordering criterion for the elements in an associative container is the relational operator ____.

(Multiple Choice)
4.9/5
(43)

With the help of the function make_pair, we can create pairs without explicitly specifying the type pair.

(True/False)
4.8/5
(34)

The ____ contains algorithms that only look at the elements in a container and that move the elements of a container.

(Multiple Choice)
4.8/5
(36)

The algorithm maxi is used to determine the maximum of two values.

(True/False)
4.9/5
(42)

Both the containers set and multiset automatically sort their elements according to some sort criteria.

(True/False)
4.9/5
(38)

In the second form of ____, the binary operation op is applied to the elements in the range.

(Multiple Choice)
4.8/5
(39)

The algorithm reverse reverses the order of the elements in a given range.

(True/False)
4.8/5
(37)

The STL provides four insert iterators to insert elements at a destination.

(True/False)
4.9/5
(41)

The first form of the function transform has three parameters.

(True/False)
4.8/5
(35)

Elements in an associative container are not sorted automatically.

(True/False)
4.8/5
(29)

Because the data members of an object of type pair are private, each object of type pair can directly access these data members in a program.

(True/False)
4.9/5
(45)

The algorithm ____ reverses the elements of a given range while copying into a destination range.

(Multiple Choice)
4.7/5
(42)

A convenient and fast way to implement an associative container data structure is to use a ____.

(Multiple Choice)
4.9/5
(42)

Nonmodifying algorithms do not modify the elements of the container.

(True/False)
4.9/5
(32)

Modifying algorithms that change the order of the elements, not their values, are also called ____.

(Multiple Choice)
4.7/5
(29)
Showing 1 - 20 of 50
close modal

Filters

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