Which traversal of a Binary Search Tree produces elements in sorted order?

Options

  • A. Preorder
  • B. Postorder
  • C. Inorder
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

C. Inorder

Detailed Explanation

Inorder traversal of a Binary Search Tree produces the elements in ascending sorted order when the BST follows the standard ordering rule. Inorder traversal visits nodes in the sequence Left subtree → Root → Right subtree. The other common tree traversals are preorder (Root → Left → Right) and postorder (Left → Right → Root). These traversal techniques are fundamental concepts for tree-based questions in Data Structures.