Exam 21: Standard Template Library
Exam 1: An Overview of Computers and Programming Languages40 Questions
Exam 2: Basic Elements of C++50 Questions
Exam 3: Inputoutput40 Questions
Exam 4: Control Structures I Selection40 Questions
Exam 5: Control Structures Ii Repetition40 Questions
Exam 6: User-Defined Function41 Questions
Exam 7: Namespaces, the Class String, and User-Defined Simple Data Types40 Questions
Exam 8: Arrays40 Questions
Exam 9: Records Structs40 Questions
Exam 10: Classes and Data Abstraction43 Questions
Exam 11: Inheritance and Composition41 Questions
Exam 12: Pointers, Classes, Virtual Functions, and Abstract Classes44 Questions
Exam 13: Operator Overloading and Templates41 Questions
Exam 14: Exception Handling43 Questions
Exam 15: Recursion43 Questions
Exam 16: Linked Lists40 Questions
Exam 17: Stacks and Queue43 Questions
Exam 18: Searching and Sorting Algorithms40 Questions
Exam 19: Binary Trees43 Questions
Exam 20: Graph Algorithms48 Questions
Exam 21: Standard Template Library41 Questions
Select questions type
A container's ____ executes when the object goes out of scope.
Free
(Multiple Choice)
4.9/5
(38)
Correct Answer:
B
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:
True
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)
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)
If data needs to be processed in a LIFO manner, use a ____.
(Multiple Choice)
4.9/5
(45)
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)