From the following code identify the which traversal of a binary tree is this…

PYQ Hexaware Hiring Assessment 2025

From the following code identify the which traversal of a binary tree is this __________

//if node has left child

order(node.left)

//if node has right child

order(node.right)

visit(node)

  1. A.

    Inorder traversal

  2. B.

    preorder traversal

  3. C.

    postorder traversal

  4. D.

    Euler tour traversal

Attempted by 413 students.

Sign up free to check your answer

Sign up free

Explore the full course: Cdac C Cat Complete Preparation

Loading lesson…