11. What is the condition for priority of a node in a treap?
12. What is the longest length path for a node x in random binary search tree for the insertion process?
13. Which of the following options is an application of splay trees?
14. What is the condition for a tree to be weight balanced. where a is factor and n is a node?
15. Given an empty AVL tree, how would you construct AVL tree when a set of numbers are given without performing any rotations?
16. A binary tree is a rooted tree but not an ordered tree.
17. Select the code snippet which performs post-order traversal.
18. How many children does a binary tree have?
19. Cartesian trees solve range minimum query problem in constant time.
20. What does the following piece of code do?
public void func(Tree root)
{
func(root.left());
func(root.right());
System.out.println(root.data());
}
public void func(Tree root)
{
func(root.left());
func(root.right());
System.out.println(root.data());
}
Read More Section(Binary Search Trees(B Tree))
Each Section contains maximum 100 MCQs question on Binary Search Trees(B Tree). To get more questions visit other sections.