
BST 2

Quiz
•
Computers
•
University
•
Medium
SACHI GCET
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a potential issue with unbalanced Binary Search Trees?
Improved search efficiency
Consistent O(1) insertion time
Degraded search performance
Automatic balancing
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following traversal outputs the data in sorted order in a BST?
Preorder
Inorder
Postorder
Level order
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the worst case time complexity for search, insert and delete operations in a general Binary Search Tree for a skewed tree ?
O(n) for all
O(Logn) for all
O(Logn) for search and insert, and O(n) for delete
O(Logn) for search, and O(n) for insert and delete
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the Binary Search Tree insertion algorithm?
To add nodes randomly
To maintain ordering and balance
To create a linked list
To ensure constant time complexity
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The preorder traversal sequence of a binary search tree is 30, 20, 10, 15, 25, 23, 39, 35, 42. Which one of the following is the postorder traversal sequence of the same tree?
10, 20, 15, 23, 25, 35, 42, 39, 30
15, 10, 25, 23, 20, 42, 35, 39, 30
15, 20, 10, 23, 25, 42, 35, 39, 30
15, 10, 23, 25, 20, 35, 42, 39, 30
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the context of BST insertion, what is a leaf node?
Node with no children
Node with only a left child
Node with only a right child
Node with two children
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following traversals is sufficient to construct BST from given traversals 1) Inorder 2) Preorder 3) Postorder
Any one of the given three traversals is sufficient
Either 2 or 3 is sufficient
2 and 3
2 and 3
1 and 3
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
DS Quiz1

Quiz
•
University
7 questions
Binary Search Tree

Quiz
•
University
11 questions
Binary Search Trees

Quiz
•
University
15 questions
Searching and Sorting

Quiz
•
University - Professi...
7 questions
ASAS SAINS KOMPUTER TINGKATAN 3 (BAB 3)

Quiz
•
University
10 questions
PDS - 04225 Algorithms - Chapter 3

Quiz
•
University
9 questions
Data structure using C

Quiz
•
University
15 questions
UAS Rekayasa Sistem Informasi SI-VII

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University