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 1666 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: Hpsc Pgt Computer Science

Loading lesson…