Exam 13: Standard Template Library (STL) II
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 function remove is used to remove the elements from a sequence by using some criteria.
Free
(True/False)
4.9/5
(37)
Correct Answer:
False
The only difference between the containers map and multimap is that the container map allows duplicates, whereas the multimap container does not.
Free
(True/False)
4.9/5
(37)
Correct Answer:
False
The STL relational function objects can also be applied to containers.
Free
(True/False)
4.7/5
(35)
Correct Answer:
True
The algorithms includes (subset), set_intersection, set_union, set_difference, and set_symmetric_difference assume that the elements within each given range are not sorted.
(True/False)
4.8/5
(28)
The general syntax to declare an object of type pair is ____.
(Multiple Choice)
4.8/5
(36)
The default ordering criterion for the elements in an associative container is the relational operator ____.
(Multiple Choice)
4.9/5
(43)
With the help of the function make_pair, we can create pairs without explicitly specifying the type pair.
(True/False)
4.8/5
(34)
The ____ contains algorithms that only look at the elements in a container and that move the elements of a container.
(Multiple Choice)
4.8/5
(36)
The algorithm maxi is used to determine the maximum of two values.
(True/False)
4.9/5
(42)
Both the containers set and multiset automatically sort their elements according to some sort criteria.
(True/False)
4.9/5
(38)
In the second form of ____, the binary operation op is applied to the elements in the range.
(Multiple Choice)
4.8/5
(39)
The algorithm reverse reverses the order of the elements in a given range.
(True/False)
4.8/5
(37)
The STL provides four insert iterators to insert elements at a destination.
(True/False)
4.9/5
(41)
Elements in an associative container are not sorted automatically.
(True/False)
4.8/5
(29)
Because the data members of an object of type pair are private, each object of type pair can directly access these data members in a program.
(True/False)
4.9/5
(45)
The algorithm ____ reverses the elements of a given range while copying into a destination range.
(Multiple Choice)
4.7/5
(42)
A convenient and fast way to implement an associative container data structure is to use a ____.
(Multiple Choice)
4.9/5
(42)
Nonmodifying algorithms do not modify the elements of the container.
(True/False)
4.9/5
(32)
Modifying algorithms that change the order of the elements, not their values, are also called ____.
(Multiple Choice)
4.7/5
(29)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)