
Binary Search Tree and Hashing Quiz

Quiz
•
Other
•
University
•
Medium
Mahipal Jadeja
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of searching an element in a balanced Binary Search Tree?
O(n)
O(log n)
O(n log n)
O(1)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which traversal of a BST results in a sorted order of elements?
Preorder
Inorder
Postorder
Level order
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a BST, what is the time complexity of inserting an element in the worst case?
O(log n)
O(n)
O(1)
O(n²)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following properties is not true for a Binary Search Tree?
All left descendants ≤ node
All right descendants > node
No duplicate nodes
All nodes must be balanced
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Deleting a node with two children in a BST involves:
Deleting the root
Replacing it with its immediate child
Replacing it with its inorder predecessor or successor
Rebuilding the entire tree
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a collision resolution technique?
Chaining
Open Addressing
Linear Probing
Binary Search
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary goal of a good hash function?
Avoid deletion
Minimize collisions
Use complex arithmetic
Increase search time
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
BLOCKCHAIN

Quiz
•
University
10 questions
Student Check In

Quiz
•
1st Grade - University
12 questions
Merry Xmas

Quiz
•
KG - University
20 questions
Introduction to Cryptography

Quiz
•
University
20 questions
Christmas

Quiz
•
KG - University
15 questions
Figurative Language

Quiz
•
KG - University
20 questions
Round 3

Quiz
•
University
19 questions
Penilaian Akhir ASJ

Quiz
•
11th Grade - University
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
Discover more resources for Other
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University