Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Objects Abstraction Data Structures
Quiz 10: Sets and Maps
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Question 1
Short Answer
Searching for a particular value in a sequential container is generally an O(__________) process.
Question 2
Short Answer
You retrieve an object from a map by specifying its __________.
Question 3
Short Answer
What mathematicians call a(n) __________ can be thought of as a collection of objects.
Question 4
Multiple Choice
What is the result of performing the following operation? {1, 3, 5, 7} - {2, 3, 4, 5}
Question 5
True/False
There are no set union, set intersection, or set difference member functions in the C++ set class.
Question 6
Multiple Choice
Suppose you are given two sets: Set1 = {Apples, Peaches, Pineapples} Set2 = {Apples, Grapes, Peaches} The result of set1* set2 is __________.
Question 7
True/False
The vector and set both implement the common requirements of the container classes.
Question 8
Short Answer
The __________ is the same as the set except that it does not impose the requirement that the items be unique.
Question 9
Multiple Choice
If the set fruits is {"Apples", "Grapes", "Oranges", "Peaches", "Pears", "Pineapples", "Tomatoes"}, Then Lower_bound("Oranges") Would return an iterator to "__________", and Upper_bound("Pineapples") Would return an iterator to "Tomatoes".