BCSC0006 Trees

Quiz
•
Computers
•
University
•
Medium
Divyansh Bhardwaj
Used 90+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a ____, for any node 'n' every descendant node's value in the left subtree is less than n and in the right subtree is greater than n.
Binary Tree
Binary Search Tree
AVL Tree
Binary Heap Tree
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The ____ of a Binary Search Tree starts by visiting the current node, then its left child node and then its right child node.
Pre-Order Traversal
In-Order Traversal
Post-Order Traversal
Linear Order Traversal
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A ____ is a Binary Search Tree whose left and right subtree differ in height by at most 1 unit; and whose left and right subtrees are AVL trees.
Red-Black Tree
AVL Tree
Binary Heap Tree
Complete Binary Tree
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For an AVL Tree, the ____ is the additional piece of information which indicates if the difference in height between the left and the right subtree is the same or not; which of the two subtrees has one unit larger height.
Tree Factor
Balance Factor
Additional Factor
Unit Factor
5.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
True statement about AVL Trees are
It is a Binary Search Tree
Left Node and Right Node differ in height by at most 1 unit
Worst Case Complexity is O(log n)
Worst Case Complexity is O(n)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A Binary Tree can have
2 children
1 child
0 child
all of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given an empty AVL tree, how would you construct AVL tree when a set of numbers are given without performing any rotations?
just build the tree with the given input
find the median of the set of elements given, make it as root and construct the tree
use trial and error
use dynamic programming to build the tree
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
DSC UNIT 5

Quiz
•
University
7 questions
Binary Search Tree

Quiz
•
University
13 questions
Data Structure and Algorithms Semi-Final Examination

Quiz
•
University
5 questions
STRUKTUR DATA

Quiz
•
9th Grade - University
10 questions
FGH#$%^&*()RTGSDZXVC VBHNJKOP)(*&^%TRERTY^&*(U)IPOKLMMNBFDRT%^

Quiz
•
University
12 questions
Advanced Data Structures Challenge

Quiz
•
University
10 questions
Tree

Quiz
•
University
10 questions
Kuis 2 - ASD -A

Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
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
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University