Multiple choice

If a binary search tree contains numbers and tree is traversed in order then in which order, numbers will be printed?

  1. Ascending order

  2. Random order

  3. Descending order

  4. None of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

 It will be printed in ascending order as a root node has all the smaller elements in its left side and all the larger elements in its right side. Likewise it is arranged for each node, always left child is smaller and right child is larger. So, it will arrange all elements in ascending order. So it is correct option.