Vidyalelo
Data Structure · Q191

Binary Search Trees(B Tree)

Programming · Data Structure · question 191

Q191

What does the following piece of code do? public void func(Tree root) System.out.println(root.data()); func(root.left()); func(root.right());

A.
Preorder traversal
Answer
B.
Inorder traversal
C.
Postorder traversal
D.
Level order traversal

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board