GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2024 set2

GATE 2024 set2 · CS · MCQ · 2 marks · Programming and Data Structures › Binary Search Trees

GATE 2024 set2 Computer Science and Information Technology question: You are given a set V of distinct integers. A binary search tree T is created by…

You are given a set of distinct integers. A binary search tree is created by inserting all elements of one by one, starting with an empty tree. The tree follows the convention that, at each node, all values stored in the left subtree of the node are smaller than the value stored at the node. You are not aware of the sequence in which these values were inserted into , and you do not have access to .

Which one of the following statements is TRUE?

  1. (A)

    Inorder traversal of can be determined from

  2. (B)

    Root node of can be determined from

  3. (C)

    Preorder traversal of can be determined from

  4. (D)

    Postorder traversal of can be determined from

Show answer

Official answer: A

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion