
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
10 questions
Aaruth Quiz

Quiz
•
University
10 questions
Blockchain Technology (Basic) Quiz I

Quiz
•
University
20 questions
Konsep Struktur Data

Quiz
•
University
14 questions
In-Lab5

Quiz
•
University
16 questions
Tháng 3 Học kiến thức hàng tuần cùng Quizizz

Quiz
•
University
20 questions
Tech quiz-july

Quiz
•
University
15 questions
Hash Tables Quiz

Quiz
•
University
20 questions
Cardiac/Circulation/EKG

Quiz
•
12th Grade - University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade