Which of the following traversal outputs the data in sorted order in a BST?

2025

Which of the following traversal outputs the data in sorted order in a BST?

  1. A.

    Preorder

  2. B.

    Inorder

  3. C.

    Postorder

  4. D.

    Level order

Attempted by 337 students.

Show answer & explanation

Correct answer: B

Explanation:

Inorder traversal of a BST outputs data in sorted order.

Explore the full course: Coding For Placement