
BST 2
Authored by SACHI GCET
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
10 questions
TOOLS FOR AD & TECHNOLOGY DEVELOPMENT (W4-W6)
Quiz
•
University
10 questions
Unguided transmission media
Quiz
•
University
10 questions
Understanding Email, Contacts and Calendaring
Quiz
•
University
12 questions
Python Quiz 1.4
Quiz
•
University
10 questions
Logika Fuzzy
Quiz
•
University
10 questions
Tree and Planar Graph
Quiz
•
University
10 questions
CodeMonkey for B.Ed IT
Quiz
•
University
10 questions
Android
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade