MCQOPTIONS
Saved Bookmarks
| 1. |
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 |
| B. | Inorder traversal |
| C. | Postorder traversal |
| D. | Level order traversal |
| Answer» B. Inorder traversal | |