
Binary Search Tree Quiz
Authored by REVATHY K
Computers
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a binary search tree?
A tree where the value of the left node is equal to the parent node
A tree where the value of the left node is smaller than the parent node and the value of the right node is greater than the parent node
A tree where the value of the left node is smaller than the parent node
A tree where the value of the left node is greater than the parent node
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How is the inorder traversal helpful in a binary search tree?
It gives data in descending order
It gives data in ascending order
It gives data in level order
It gives data in random order
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the space complexity for deletion in a binary search tree?
O(n)
O(1)
O(log n)
O(n^2)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When is the inorder successor needed in the deletion of a node in a binary search tree?
When the node to be deleted is the root node
When the node to be deleted has only one child
When the node to be deleted has two children
When the node to be deleted is a leaf node
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity for search in a binary search tree in the best case?
O(n^2)
O(n)
O(1)
O(log n)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when a node to be deleted in a binary search tree has only one child?
The node is directly deleted
The node is replaced with its child and then the child is deleted
The node is replaced with its parent
The node is replaced with its sibling
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the space complexity for search in a binary search tree?
O(n)
O(1)
O(log n)
O(n^2)
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?
Similar Resources on Wayground
11 questions
Workshop_1
Quiz
•
University
10 questions
Neural Networks Quiz
Quiz
•
University
10 questions
Algorithm analysis: divide & conquer theory
Quiz
•
University
13 questions
Five Nights At Freddy's: Security Breach Quiz
Quiz
•
KG - Professional Dev...
10 questions
Information systems concepts
Quiz
•
University
8 questions
Overview of IT
Quiz
•
6th Grade - University
13 questions
L1 - Computer Networks
Quiz
•
University
10 questions
Web-II-Loop and Function
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade