GATE Assistant

Past questions › Data Science and Artificial Intelligence › GATE 2026

GATE 2026 · DA · MSQ · 1 mark · Programming, Data Structures and Algorithms › Trees & Hash Tables

GATE 2026 Data Science and Artificial Intelligence question: You are given the following Pre-order and In-order traversals of a Binary Tree T with…

You are given the following Pre-order and In-order traversals of a Binary Tree T with nodes E, F, G, P, Q, R, S.

Pre-order: P Q S E R F G

In-order: S Q E P F R G

Which of the following statements is/are true about the Binary Tree T?

  1. (A)

    Node P is the root of T

  2. (B)

    The Post-order traversal of T is: S E Q F G R P

  3. (C)

    Node Q has only one child

  4. (D)

    The left subtree of node R contains the node G

Show answer

This question is in an all-India live mock that is open now. Its answer appears here when the mock closes.

Practise this question with exam-style marking