
In-Lab5
Quiz
•
Other
•
University
•
Medium
Tony Abi Haidar
Used 1+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of binary search on a sorted array?
O(1)
O(n log n)
O(log n)
O(n)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the depth of a leaf node in a tree?
Depth is undefined
2
0
1
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a binary search tree, the data in the left sub-tree is:
Less than or equal to the parent node
Greater than the parent node
Randomly distributed
Equal to the parent node
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the worst-case depth of a binary search tree when inserting elements in sorted order?
O(log n)
O(n log n)
O(1)
O(n)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which traversal method visits nodes in the order of left, root, right?
In-order
Level-order
Pre-order
Post-order
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'next' pointer in a binary search tree?
To point to the root node
To point to the maximum of the left subtree
To point to the minimum of the right subtree
To point to the parent node
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when you remove a node with two children in a binary search tree?
Replace it with its right child
Relabel it with the value of its in-order successor
Replace it with its left child
Simply delete the node
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
QUIZ 2 NDJ10303 v1
Quiz
•
University
10 questions
qwis
Quiz
•
University
10 questions
Bollywood quiz-test
Quiz
•
University
10 questions
Single Linked List Concepts
Quiz
•
University
10 questions
Understanding Decision Tree Analysis
Quiz
•
University
10 questions
Google Tools
Quiz
•
University
10 questions
CHAPTER 3
Quiz
•
University
10 questions
CONSUMER DECISION MAKING (2)
Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games
Quiz
•
6th - 12th Grade
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition
Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12
Lesson
•
11th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Other
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms
Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors
Interactive video
•
4th Grade - University
15 questions
Properties of Equality
Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*
Quiz
•
10th Grade - University
21 questions
Advise vs. Advice
Quiz
•
6th Grade - University
12 questions
Reading a ruler!
Quiz
•
9th Grade - University
