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
(38)
Correct Answer:
Verified

B

____ is a nonmodifying algorithm.

Free
(Multiple Choice)
4.9/5
(32)
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
(39)
Correct Answer:
Verified

True

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

(True/False)
4.8/5
(36)

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

(True/False)
4.9/5
(32)

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

(Multiple Choice)
4.9/5
(41)

The ____ typedef iterator is common to all containers.

(Multiple Choice)
4.9/5
(40)

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

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

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

(Multiple Choice)
4.9/5
(34)

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

(Short Answer)
4.9/5
(38)

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

(True/False)
5.0/5
(36)

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

(Multiple Choice)
4.9/5
(40)

A ____ is a sequence container.

(Multiple Choice)
4.7/5
(36)

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

(Multiple Choice)
4.9/5
(45)

All containers use the same names for the common operations.

(True/False)
4.7/5
(36)

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

(Multiple Choice)
4.8/5
(38)

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

(Multiple Choice)
4.9/5
(38)

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

(True/False)
4.9/5
(38)

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

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

Filters

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