Which of the following binary tree traversals arranges the node values in…

2019

Which of the following binary tree traversals arranges the node values in ascending order when it is applied over a binary search tree?

Answer: B. Inorder traversalIn a Binary Search Tree (BST), inorder traversal visits nodes in ascending (sorted) order.

  1. A.

    Level-order traversal

  2. B.

    Inorder traversal

  3. C.

    Preorder traversal

  4. D.

    Postorder traversal

Attempted by 1667 students.

Show answer & explanation

Correct answer: B

In a Binary Search Tree (BST), inorder traversal visits nodes in ascending (sorted) order.

Explore the full course: Bpsc

Loading lesson…