Exam 21: Standard Template Library (STL)

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

The definition of the function template copy is contained in the header file ____.

(Multiple Choice)
4.8/5
(37)

The ____________________ iterators are used to output data from a program into an output stream.

(Short Answer)
4.8/5
(35)

If the data needs to be processed in a(n)____ manner,use a queue.

(Multiple Choice)
4.9/5
(35)

If consecutive elements in listCont have the same value,the ____ operation removes the duplicates.

(Multiple Choice)
4.8/5
(33)

A function object contains a function that can be treated as a function using the ____ operator.

(Multiple Choice)
4.9/5
(33)

If a container is declared as ____,then we must prevent the iterator from modifying the elements of the container,especially accidentally.

(Multiple Choice)
4.8/5
(31)

Output iterators can be used to iterate over a range twice.

(True/False)
4.8/5
(39)

The operator ____________________,supported by the stack container class,returns the actual number of elements in the stack.

(Short Answer)
4.8/5
(31)

Functions begin and end do not take any parameters.

(True/False)
4.9/5
(40)

The vector container stores and manages its objects in a dynamic array.

(True/False)
4.7/5
(44)

The term ____________________ stands for double-ended queue.

(Short Answer)
4.8/5
(41)

The STL has three main components: ____.

(Multiple Choice)
4.8/5
(40)

____________________ predicates check a specific property for a single argument.

(Short Answer)
4.8/5
(38)

The ____ typedef iterators is common to all containers.

(Multiple Choice)
4.7/5
(41)

Elements in a(n)____ container are automatically sorted according to some ordering criteria.

(Multiple Choice)
4.8/5
(37)

The only difference between the containers set and multiset is that the container multiset allows ____________________.

(Short Answer)
4.9/5
(35)

In the ____ sort algorithm,the array containing the data is viewed as a binary tree.

(Multiple Choice)
4.9/5
(29)

You must use the container name,the container element type,and the scope resolution operator to use the typedef iterator.

(True/False)
4.9/5
(42)

The operator ____________________,supported by the queue container class,removes the next element in the queue.

(Short Answer)
4.8/5
(43)

____ returns the maximum number of elements that can be inserted into the vector container vecCont without reallocation.

(Multiple Choice)
4.7/5
(44)
Showing 21 - 40 of 50
close modal

Filters

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