Exam 15: Standard Library Containers and Iterators
Exam 1: Introduction to Computers and C++32 Questions
Exam 2: Introduction to C Programming; Inputoutput and Operators22 Questions
Exam 3: Introduction to Classes, Objects and Strings33 Questions
Exam 4: Control Statements, Assignment, and Operators29 Questions
Exam 5: Control Statements, Logical Operators31 Questions
Exam 6: Functions and an Introduction to Recursion48 Questions
Exam 7: Class Templates Array and Vector; Catching Exceptions18 Questions
Exam 8: Pointers and Pointer-Based Strings32 Questions
Exam 9: Classes: a Deeper Look; Throwing Exceptions35 Questions
Exam 10: Operator Overloading; String and Array Objects34 Questions
Exam 11: Object-Oriented Programming: Inheritance17 Questions
Exam 12: Object-Oriented Programming: Polymorphism27 Questions
Exam 13: Stream Inputoutput: a Deeper Look34 Questions
Exam 14: File Processing19 Questions
Exam 15: Standard Library Containers and Iterators33 Questions
Exam 16: Standard Library Algorithms27 Questions
Exam 17: Exception Handling: a Deeper Look20 Questions
Exam 18: Introduction to Custom Templates9 Questions
Exam 19: Custom Templatized Data Structures17 Questions
Exam 20: Searching and Sorting10 Questions
Exam 21: Class String and String Stream Processing28 Questions
Exam 22: Bits, Characters, C Strings and Structs30 Questions
Exam 23: Other Topics22 Questions
Exam 24: C++11 Additional Features56 Questions
Select questions type
The erase member function of class vector cannot:
Free
(Multiple Choice)
5.0/5
(32)
Correct Answer:
B
Assuming that bitset b1 contains the bits [0 1 1 0] and bitset b2 contains the bits [1 1 1 1], which of the following expressions returns true?
Free
(Multiple Choice)
4.8/5
(28)
Correct Answer:
A
Data loss could occur if the contents of a __________ were placed into any of the other three associative container types.
Free
(Multiple Choice)
4.8/5
(38)
Correct Answer:
C
Which of the following is not a member function of all sequence containers?
(Multiple Choice)
4.9/5
(37)
Which of the following are mutating-sequence algorithms defined in the Standard Library?
(Multiple Choice)
4.8/5
(31)
Which of the following is the correct hierarchy of iterator categories (weakest at the left)?
(Multiple Choice)
4.8/5
(31)
Which of the following is not a member function of all sequence containers?
(Multiple Choice)
4.9/5
(32)
As of C++11, you can ask a vector or deque to return unneeded memory to the system by calling member function shrink_to_fit. This requests that the container reduce its capacity to the number of elements in the container. According to the C++ standard, implementations can ignore this request so that they can perform implementation-specific optimizations.
(Multiple Choice)
4.8/5
(40)
Which of the following is a difference between vectors and arrays?
(Multiple Choice)
4.8/5
(42)
Which of the following is not a key component of the Standard Library?
(Multiple Choice)
5.0/5
(34)
Which of the following containers is not considered a near container?
(Multiple Choice)
4.8/5
(35)
If a program attempts to insert a duplicate key into a set:
(Multiple Choice)
4.7/5
(35)
Which of the following statements is true of a priority_queue?
(Multiple Choice)
4.9/5
(25)
Which category of iterators combines the capabilities of input and output iterators into one iterator?
(Multiple Choice)
4.8/5
(37)
Which of the following applications would a deque not be well suited for?
(Multiple Choice)
4.8/5
(38)
The expression std::multimap<int, double, std::less<int>>::value_type(15, 2.7):
(Multiple Choice)
4.8/5
(41)
Showing 1 - 20 of 33
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)