
Complete Modern C++ - Unordered Containers (C++11)
Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Read more
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary characteristic of unordered containers?
They maintain elements in a sorted order.
They allow duplicate keys by default.
They are slower than ordered containers.
They are implemented as hash tables.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when the load factor of a hash table reaches a certain value?
The hash table remains unchanged.
The hash table deletes some elements.
The hash table shrinks.
The hash table is rehashed.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which header file is necessary to use unordered sets in C++?
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default behavior of an unordered set regarding duplicate entries?
It allows duplicate entries.
It merges duplicate entries.
It sorts duplicate entries.
It does not allow duplicate entries.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In an unordered map, what is used to compute the hash?
A random value.
The first element of the pair.
The entire pair object.
The second element of the pair.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to insert elements into an unordered map?
insert()
append()
add()
push()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a key difference between unordered maps and unordered multimaps?
Unordered multimaps are slower than unordered maps.
Unordered maps do not allow duplicate keys.
Unordered multimaps do not allow duplicate keys.
Unordered maps allow duplicate keys.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?