Trees: GATE DA Previous Year Questions

Trees · Programming, Data Structures and Algorithms

3 questions · asked in 2 of 3 years (2024–2026)

MSQ 31-mark 2 · 2-mark 1

2024Questions per year2026

Questions 1–3 of 3

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

Pre-order:PQSERFGIn-order:SQEPFRG\begin{array}{llllllll} \text{Pre-order:} & P & Q & S & E & R & F & G \\ \text{In-order:} & S & Q & E & P & F & R & G \end{array}

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

One or more options are correct.

Q2GATE 20241 markMSQ
Consider the following tree traversals on a full binary tree:

(i) Preorder
(ii) Inorder
(iii) Postorder

Which of the following traversal options is/are sufficient to uniquely reconstruct the full binary tree?

One or more options are correct.

Q3GATE 20242 marksMSQ
Let H,I,LH, I, L, and NN represent height, number of internal nodes, number of leaf nodes, and the total number of nodes respectively in a rooted binary tree.
Which of the following statements is/are always TRUE?

One or more options are correct.

Keep practising

Topics in Programming, Data Structures and Algorithms

All DA topics ›