Exam 4: Standard Template Library (STL) I
Exam 1: Software Engineering Principles and C++ Classes42 Questions
Exam 2: Object-Oriented Design OOD and C++35 Questions
Exam 3: Pointers and Array-Based Lists45 Questions
Exam 4: Standard Template Library (STL) I47 Questions
Exam 5: Linked Lists44 Questions
Exam 6: Recursion36 Questions
Exam 7: Stacks44 Questions
Exam 8: Queues48 Questions
Exam 9: Searching and Hashing Algorithms49 Questions
Exam 10: Sorting Algorithms47 Questions
Exam 11: Binary Trees and B-Trees47 Questions
Exam 12: Graphs43 Questions
Exam 13: Standard Template Library (STL) II50 Questions
Select questions type
The statement ____ advances cntItr so that it points to the next element in the container.
Free
(Multiple Choice)
4.7/5
(49)
Correct Answer:
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:
D
An iterator of the type const_iterator is a read-only iterator.
Free
(True/False)
4.9/5
(43)
Correct Answer:
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 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 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)
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)