Exam 21: Standard Template Library Stl

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

An STL algorithm cannot:

(Multiple Choice)
4.9/5
(37)

Iterators are similar to pointers because of the:

(Multiple Choice)
4.7/5
(27)

The algorithms in the STL:

(Multiple Choice)
4.8/5
(24)

Which of the following containers is not considered a near container?

(Multiple Choice)
4.9/5
(27)

The difference between functions partition and stable_partition is that:

(Multiple Choice)
4.7/5
(43)

Which of the following bitset member functions cannot be called with an empty argument list?

(Multiple Choice)
4.8/5
(37)

The easiest way to set all the values of a vector to zero is to use function:

(Multiple Choice)
4.7/5
(32)

Which of the following is the correct hierarchy of iterator categories weakest at the left)?

(Multiple Choice)
4.7/5
(36)

The for_each function applies a general function to each element in the specified range. This general function should:

(Multiple Choice)
4.9/5
(46)

The __________ function would produce the sequence 1, 5, 6 when passed the sequences 1, 2, 3, 4, 5, 6 and 2, 3, 4, 7 as first/second and third/fourth arguments, respectively.

(Multiple Choice)
4.8/5
(39)

Function template back_inserter returns:

(Multiple Choice)
4.7/5
(31)

The easiest way to search through a list of names and output the first one that begins with a vowel would be to use function:

(Multiple Choice)
4.7/5
(45)

Which of the following is a difference between vectors and arrays?

(Multiple Choice)
4.8/5
(39)

Data loss could occur if the contents of a __________ were placed into any of the other three associative container types.

(Multiple Choice)
4.7/5
(45)

The expression std::multimap< int, double, std::less< int > >::value_type 15, 2.7 ):

(Multiple Choice)
4.7/5
(29)

Class deque provides:

(Multiple Choice)
4.8/5
(38)

Function mismatch returns:

(Multiple Choice)
4.9/5
(42)

Function objects have their functions called by using:

(Multiple Choice)
4.9/5
(38)

Which of the following is not a sequence container provided by the STL?

(Multiple Choice)
4.9/5
(45)

If v1 is a vector< int > containing some number of int elements sorted in ascending order, after these statements execute: Std::vector< int > results1; Std::vector< int > results2; Std::unique_copy v1.begin), v1.end), std::back_inserter results1 ) ); Std::reverse_copy v1.begin), v1.end), std::back_inserter results2 ) ); Which of the following could be true?

(Multiple Choice)
4.9/5
(31)
Showing 21 - 40 of 56
close modal

Filters

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