Exam 16: Standard Library Algorithms
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
Functions iter_swap and swap_ranges are similar in that both:
Free
(Multiple Choice)
4.8/5
(36)
Correct Answer:
C
The algorithms in the Standard Library:
Free
(Multiple Choice)
4.8/5
(29)
Correct Answer:
C
Which of the following is not a category of the Standard Library algorithms?
Free
(Multiple Choice)
4.7/5
(37)
Correct Answer:
D
Which of the following is not a mathematical algorithm included in the Standard Library?
(Multiple Choice)
4.8/5
(36)
A lambda function can capture local variables ________ and manipulate them inside the lambda's body.
(Multiple Choice)
4.9/5
(30)
The easiest way to search through a list of names and output the first one that begins with a vowel would be to use function:
(Multiple Choice)
5.0/5
(37)
If v1 is a vector<int> containing some number of int elements sorted in ascending order, after these statements execute: std::vector<int> results1;
Std::vector<int> results2;
Std::unique_copy(v1.begin(), v1.end(), std::back_inserter(results1));
Std::reverse_copy(v1.begin(), v1.end(), std::back_inserter(results2));
Which of the following could be true?
(Multiple Choice)
4.9/5
(39)
Which of the following function calls would not return the value that is its first argument?
(Multiple Choice)
5.0/5
(33)
The order of the arguments passed to function replace_copy_if must be:
(Multiple Choice)
4.8/5
(39)
Which of the following is a valid generator function prototype for use with generate or generate_n on a vector<char>?
(Multiple Choice)
4.8/5
(39)
Which algorithm cannot take a predicate function as an argument?
(Multiple Choice)
4.9/5
(47)
The easiest way to set all the values of a vector to zero is to use function:
(Multiple Choice)
4.8/5
(38)
Suppose you have a shopping list stored in a vector. What function would you use to remove all items in that vector that are under 10 dollars and place them in another container?
(Multiple Choice)
4.9/5
(41)
Lambdas begin with the lambda introducer ________, followed by a parameter and function body.
(Multiple Choice)
4.8/5
(38)
Given that v1 and v2 are vectors, what is returned by the function call std::equal(v1.begin(), v1.end(), v2.begin())
(Multiple Choice)
4.8/5
(32)
The for_each function applies a general function to each element in the specified range. This general function should:
(Multiple Choice)
4.9/5
(30)
Showing 1 - 20 of 27
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)