Vidyalelo
Data Structure · Q120

Binary Search Trees(B Tree)

Programming · Data Structure · question 120

Q120

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

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

Answer: Option C

Solution

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