Exam 17: The Standard Template Library
Exam 1: Introduction to Computers and Programming47 Questions
Exam 2: Introduction to C62 Questions
Exam 3: Expressions and Interactivity45 Questions
Exam 4: Making Decisions51 Questions
Exam 5: Loops and Files60 Questions
Exam 6: Functions49 Questions
Exam 7: Arrays and Vectors56 Questions
Exam 8: Searching and Sorting Arrays30 Questions
Exam 9: Pointers47 Questions
Exam 10: Characters, C-Strings, and More About the String Class47 Questions
Exam 11: Structured Data46 Questions
Exam 12: Advanced File Operations38 Questions
Exam 13: Introduction to Classes54 Questions
Exam 14: More About Classes46 Questions
Exam 15: Inheritance, Polymorphism, and Virtual Functions43 Questions
Exam 16: Exceptions and Templates36 Questions
Exam 17: The Standard Template Library38 Questions
Exam 18: Linked Lists41 Questions
Exam 19: Stacks and Queues47 Questions
Exam 20: Recursion27 Questions
Exam 21: Binary Trees39 Questions
Select questions type
A sequence container that is dynamic in size is a(n)
Free
(Multiple Choice)
4.9/5
(31)
Correct Answer:
C
When an element is stored in a map, it is stored as an object of the __________ type.
Free
(Multiple Choice)
4.8/5
(39)
Correct Answer:
C
To improve runtime performance, C++11 introduced a new family of member functions that use the emplacement technique to insert new elements.
Free
(True/False)
4.9/5
(38)
Correct Answer:
True
A sequence container organizes data in a sequential fashion, similar to an array.
(True/False)
4.9/5
(38)
The Standard Template Library (STL) contains templates for useful algorithms and data structures.
(True/False)
4.8/5
(32)
Select all that apply. An object of a class that overloads the function call operator is a(n)
(Multiple Choice)
4.8/5
(27)
Select all that apply. Which of the following are types of iterators?
(Multiple Choice)
4.9/5
(34)
A vector is an associative container that works like an array but is dynamic in size.
(True/False)
4.9/5
(37)
To use the binary_search() algorithm you need to include ___________
(Multiple Choice)
4.9/5
(38)
Because the array class's [] operator will perform bounds checking, it is acceptable to use a subscript that is out of bounds.
(True/False)
4.9/5
(37)
Select all that apply. Which of the following statement(s) is(are) not true?
(Multiple Choice)
4.8/5
(31)
To retrieve a value from a map, you call the __________ member function and pass the __________ that is associated with the desired value.
(Multiple Choice)
4.7/5
(26)
An associative container stores data in a nonsequential way so it is slower to locate elements than a sequence container.
(True/False)
4.8/5
(35)
The three sequence container objects provided by the STL are
(Multiple Choice)
4.7/5
(39)
A mutable iterator gives you read/write access to the element to which the iterator points.
(True/False)
4.7/5
(32)
A(n) __________ is like a pointer. It is used to access the individual data elements in a container.
(Multiple Choice)
4.8/5
(33)
Which of the following defines an array object that holds three strings?
(Multiple Choice)
4.9/5
(41)
A technique introduced by C++11 to improve runtime performance is known as
(Multiple Choice)
4.8/5
(24)
Which of the following types of iterators is(are) not supported by the vector class?
(Multiple Choice)
4.7/5
(45)
Showing 1 - 20 of 38
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)