Java exam
Mcq 15-20
Q15:
Which of the following trees are binary search trees?
. all of them
Q16:
Which of the following trees are binary search trees?
. all of them
Q17:
. all of them
Q18:
It is forbidden to place both private and abstract in front of a method declaration.
. true
. false
Q19:
Consider the binary search tree below:
What is the post-order path of this binary search tree?
Remember this in the post-order walk: First, we go through the left subtree. Then we cross the right subtree. Finally, we visit the root.
Q20:
Consider the following two classes:
After executing the code, we will have the following display: