Which of the following best describes the correct sequence of node visits in a…

2025

Which of the following best describes the correct sequence of node visits in a preorder traversal of a tree?

Answer: A. Visit root → Visit left subtree → Visit right subtree

  1. A.

    Visit root → Visit left subtree → Visit right subtree

  2. B.

    Visit left subtree → Visit right subtree → Visit root

  3. C.

    Visit right subtree → Visit root → Visit left subtree

  4. D.

    Visit left subtree → Visit root → Visit right subtree

Attempted by 504 students.

Show answer & explanation

Correct answer: A

Explore the full course: Niacl Ao It Specialist

Loading lesson…