• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

Top MCQs on Tree Traversal with Interview Question and Answers | DSA Quiz

Question 41

The following three are known to be the preorder, inorder and postorder sequences of a binary tree. But it is not known which is which.
MBCAFHPYK
KAMCBYPFH
MABCKYFPH
Pick the true statement from the following.
  • I and II are preorder and inorder sequences, respectively
  • I and III are preorder and postorder sequences, respectively
  • II is the inorder sequence, but nothing more can be said about the other two sequences
  • II and III are the preorder and inorder sequences, respectively

Question 42

When searching for the key value 60 in a binary search tree, nodes containing the key values 10, 20, 40, 50, 70 80, 90 are traversed, not necessarily in the order given. How many different orders are possible in which these key values can occur on the search path from the root to the node containing the value 60?
  • 35
  • 64
  • 128
  • 5040

There are 42 questions to complete.

Last Updated :
Take a part in the ongoing discussion