πŸ“’ Too many exams? Don’t know which one suits you best? Book Your Free Expert πŸ‘‰ call Now!

  • google app store apple app store
  • βœ–

      Question

      Consider the in-order traversal of a Binary Search Tree.

      What characteristic does the sequence of visited nodes possess?
      A It is in reverse sorted order. Correct Answer Incorrect Answer
      B It is in random order. Correct Answer Incorrect Answer
      C It is in sorted (ascending) order. Correct Answer Incorrect Answer
      D It depends on the initial insertion order. Correct Answer Incorrect Answer
      E It represents a breadth-first traversal. Correct Answer Incorrect Answer

      Solution

      An in-order traversal of a BST visits nodes in the order: left subtree, root, right subtree. Due to the BST property, this naturally results in visiting elements in ascending sorted order.

      Practice Next
      ask-question