Binary Tree: GATE CS Previous Year Questions

Binary Tree · Data Structures

35 questions · asked in 17 of 27 years (2000–2026)

MCQ 27 · NAT 81-mark 26 · 2-mark 9

2000Questions per year2026

Questions 26–30 of 35

Q26GATE 20061 markMCQ−0.33 if wrong
An array X of n distinct integers is interpreted as a complete binary tree. The index of the first element of the array is 0. The index of the parent of elementX[i],i≠0X[i], i \neq 0, is?

Q27GATE 20061 markMCQ−0.33 if wrong
In a binary tree, the number of internal nodes of degree 1 is 5, and the number of internal nodes of degree 2 is 10. The number of leaf nodes in the binary tree is

Q28GATE 20061 markMCQ−0.33 if wrong
A scheme for storing binary trees in an array X is as follows. Indexing of X starts at 1 instead of 0. The root is stored at X[1]. For a node stored at X[i], the left child, if any, is stored in X[2i] and the right child, if any, in X[2i + 1]. To be able to store any binary tree on n vertices, the minimum size of X should be

Q29GATE 20051 markMCQ−0.33 if wrong
In a binary tree, for every node the difference between the number of nodes in the left and right subtrees is at most 2. If the height of the tree is h > 0, then the minimum number of nodes in the tree is

Q30GATE 20041 markMCQ−0.33 if wrong
Which one of the following binary trees has its inorder and preorder traversals as BCAD and ABCD, respectively?
(A) A B C D (B) A C D B (C) A B C D (D) A B D C

Keep practising

Topics in Data Structures

All CS topics ›