Exam 4: Standard Template Library (STL) I

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

The statement ____ advances cntItr so that it points to the next element in the container.

Free
(Multiple Choice)
4.7/5
(49)
Correct Answer:
Verified

A

The class ____ contains member functions that can be used to find the number of elements currently in the container, the maximum number of elements that can be inserted in a container, and so on.

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

D

An iterator of the type const_iterator is a read-only iterator.

Free
(True/False)
4.9/5
(43)
Correct Answer:
Verified

True

The expression vecCont.empty() empties the vector container of all elements.

(True/False)
4.8/5
(39)

The statement ____ declares intList to be a vector and the component type to be int.

(Multiple Choice)
4.8/5
(40)

____ iterators are forward iterators that can also iterate backward over the elements.

(Multiple Choice)
4.7/5
(37)

An iterator of type const_reverse_iterator is used to iterate through the elements of a container in reverse.

(True/False)
4.8/5
(44)

The ____ iterator is used to input data into a program from an input stream.

(Multiple Choice)
4.7/5
(36)

Assuming vecList is a vector container, the expression ____ deletes all elements from the container.

(Multiple Choice)
4.9/5
(42)

The general syntax to use an istream iterator is ____.

(Multiple Choice)
4.9/5
(30)

The expression ____ advances the iterator intVecIter to the next element into the container.

(Multiple Choice)
4.7/5
(39)

The function copy can perform only one operation, which is to output the elements of a container.

(True/False)
4.7/5
(42)

The typedef ____ iterator is a read-only iterator.

(Multiple Choice)
4.7/5
(31)

The term deque stands for double-ended queue.

(True/False)
4.8/5
(36)

The name of the header file containing the class vector is vec.h.

(True/False)
4.7/5
(31)

Assuming deq is a deque object, the expression deq.push_front(elem) deletes the first element from deq.

(True/False)
4.8/5
(38)

The expression ____ returns the element at the current iterator position.

(Multiple Choice)
4.7/5
(32)

Every object in a sequence container has a specific position.

(True/False)
5.0/5
(37)

If the data needs to be processed in a First In First Out (FIFO) manner, we typically use a(n) ____.

(Multiple Choice)
4.9/5
(40)

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

(Multiple Choice)
4.9/5
(32)
Showing 1 - 20 of 47
close modal

Filters

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