Exam 21: Standard Template Library

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

A container's ____ executes when the object goes out of scope.

Free
(Multiple Choice)
4.9/5
(81)
Correct Answer:
Verified

B

____ is a nonmodifying algorithm.

Free
(Multiple Choice)
4.9/5
(67)
Correct Answer:
Verified

A

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

Free
(True/False)
4.8/5
(77)
Correct Answer:
Verified

True

The first element in a vector container is at location 1.

(True/False)
4.8/5
(79)

The deq.front() operation on a deque object checks whether the container is empty.

(True/False)
5.0/5
(74)

Random access iterators are ____ iterators that can randomly process the elements of a container.

(Multiple Choice)
4.9/5
(82)

The ____ typedef iterator is common to all containers.

(Multiple Choice)
4.9/5
(84)

Every container contains the typedef ____________________.An iterator of this type is used to iterate through the elements of a container in reverse.

(Short Answer)
4.7/5
(74)

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
(79)

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

(Multiple Choice)
5.0/5
(73)

The expression ct.____________________ deletes all of the elements from the container ct.

(Short Answer)
4.9/5
(81)

Input iterators, with read access, step forward element by element.

(True/False)
5.0/5
(81)

The class ____ contains the definition of an output stream iterator.

(Multiple Choice)
4.9/5
(83)

A ____ is a sequence container.

(Multiple Choice)
4.7/5
(80)

If data needs to be processed in a LIFO manner, use a ____.

(Multiple Choice)
4.9/5
(86)

All containers use the same names for the common operations.

(True/False)
4.8/5
(79)

The container member function ____ returns the position of one past the last element in the container.

(Multiple Choice)
4.8/5
(71)

The ____ operation returns a pointer to the position before the first element in container ct.

(Multiple Choice)
5.0/5
(84)

The name of the class that implements the vector container is container.

(True/False)
4.9/5
(89)

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

(Multiple Choice)
4.8/5
(70)
Showing 1 - 20 of 41
close modal

Filters

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