Exam 13: Standard Template Library (STL) II

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

The algorithm ____ is used to manipulate the elements of two ranges.

(Multiple Choice)
4.8/5
(32)

The algorithms accumulate, adjacent_difference, inner_product, and partial_sum are numerical functions and manipulate numeric data.

(True/False)
4.9/5
(37)

The algorithm ____ is used to randomly order the elements in a given range.

(Multiple Choice)
4.9/5
(32)

A ____ contains a function that can be treated as a function using the function call operator, ().

(Multiple Choice)
4.8/5
(37)

With the help of the ____, two values can be combined into a single unit and, therefore, can be treated as one unit.

(Multiple Choice)
4.9/5
(42)

Every object of type pair has two data members, first and second, and these two data members are private.

(True/False)
4.8/5
(32)

The algorithm ____ counts the occurrences of a given value in a given range.

(Multiple Choice)
4.9/5
(38)

The algorithm ____ merges the sorted lists.

(Multiple Choice)
4.8/5
(39)

The algorithm ____ is used to find the elements in one range of elements that do not appear in another range of elements.

(Multiple Choice)
4.7/5
(37)

The class pair has two constructors: the default constructor and a constructor with two parameters.

(True/False)
4.8/5
(40)

To make the generic algorithms flexible, the STL usually provides three forms of an algorithm using the mechanism of function overloading.

(True/False)
4.8/5
(37)

The second form of the function transform has three parameters.

(True/False)
4.7/5
(33)

The algorithm find_adjacent is used to find the first occurrence of consecutive elements that meet certain criteria.

(True/False)
4.9/5
(30)

Elements in an associative container are automatically sorted according to some ordering criteria.

(True/False)
4.9/5
(42)

The algorithm count_if counts the occurrences of a given value in a given range satisfying a certain criterion.

(True/False)
4.9/5
(36)

The statement ____ assigns 50 to the data member first of x.

(Multiple Choice)
4.9/5
(37)

The algorithm min is used to determine the minimum of two values.

(True/False)
4.9/5
(38)

The algorithm ____ is used to determine the largest element in a given range.

(Multiple Choice)
4.9/5
(29)

The algorithm ____ determines whether the elements in one range appear in another range.

(Multiple Choice)
4.9/5
(45)

The first form of ____ uses the equality criteria.

(Multiple Choice)
4.8/5
(33)
Showing 21 - 40 of 50
close modal

Filters

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