In preorder traversal of a binary tree the second step is ____________

2024

In preorder traversal of a binary tree the second step is ____________

Answer: B. traverse the left subtreeAnswer: b Explanation: In a preorder traversal of a binary tree first is to visit the root, second traverse the left subtree of the tree and third traverse…

  1. A.

    traverse the right subtree

  2. B.

    traverse the left subtree

  3. C.

    traverse right subtree and visit the root

  4. D.

    visit the root

Attempted by 456 students.

Show answer & explanation

Correct answer: B

Answer: b

Explanation: In a preorder traversal of a binary tree first is to visit the root, second traverse the left subtree of the tree and third traverse the right subtree of the tree.

Explore the full course: Coding For Placement

Loading lesson…