
DSA + System Design 11

Quiz
•
Computers
•
Professional Development
•
Medium
Puneet Kansal
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following properties is crucial for a good hash function?
Slow computation
Producing the same hash for different inputs
Producing a unique hash for every unique input
Large output size
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the load factor in a hash table?
The ratio of the number of entries to the number of slots
The time complexity of hashing
The speed of hash function computation
The size of the hash table
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
what is the average case time complexity of searching an element in a hash table?
O(1)
O(log n)
O(n)
O(n log n)
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is true about unordered_set / HashSet / set?
Elements are sorted in ascending order
Elements are accessed using an index
Duplicate elements are not allowed
Insertion and lookup operations have a time complexity of O(log n)
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the primary advantage of using an unordered_set over a set in C++?
Faster lookup and insertion
Maintains sorted order
Uses less memory
Supports duplicates
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which data structure is used at backend for inbuild unordered_set / hashset / set.
Array
Linkedlist
Hash table
tree
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the time complexity of searching an element in hash table in worst case?
O(1)
O(logn)
O(n)
O(n^2)
Create a free account and access millions of resources
Similar Resources on Wayground
8 questions
Remote Server Terbaru

Quiz
•
Professional Development
10 questions
CISSP Domain 3

Quiz
•
Professional Development
10 questions
PL-900 MÓDULO 01 pt-br

Quiz
•
Professional Development
15 questions
AI-900 MÓDULO 02 pt-br

Quiz
•
Professional Development
10 questions
HTML Class 2

Quiz
•
Professional Development
15 questions
Security+ Study Guide-10 Understanding Cryptography and PKI

Quiz
•
Professional Development
6 questions
Bitcoin

Quiz
•
Professional Development
10 questions
React-Routing

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade