
Binary Search Trees and Balanced Trees Quiz

Quiz
•
Computers
•
University
•
Medium
Matthew Garcia
Used 20+ times
FREE Resource
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the worst case, a binary search tree will take how much time to search an element?
O(n)
O(log n)
O(n^2)
O(n log n)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How much time does an AVL tree take to perform insert, insert, and delete operations in the average case as well as the worst case?
O(n)
O(log n)
O(n^2)
O(n log n)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When the left sub-tree of the tree is one level higher than that of the right sub-tree, then the balance factor is
0
1
-1
2
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which rotation is done when the new node is inserted in the right sub-tree of the right sub-tree of the critical node?
LL
LR
RL
RR
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When a node N is accessed it is splayed to make it the
Root node
Parent node
Child node
Sibling node
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a binary search tree, all the nodes in the left sub-tree have a value less than that of the root node.
True
False
7.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
To find the node with the largest value, we will find the value of the rightmost node of the ____ ____ _____.
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
New DSC Quiz

Quiz
•
University
20 questions
Ulangan Harian 1 kelas XI

Quiz
•
University
20 questions
BCS 8th BDA Quizz

Quiz
•
University
25 questions
ULANGAN INFORMATIKA KELAS 7 MATERI BERPIKIR KOMPUTASIONAL

Quiz
•
7th Grade - University
20 questions
Final Quiz

Quiz
•
University
20 questions
9.4.25 Mentoring quiz

Quiz
•
University
22 questions
Network Topologies, ETC.

Quiz
•
University
17 questions
Node-Red

Quiz
•
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 Computers
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