n-ary Tree: GATE CS Previous Year Questions

n-ary Tree · Data Structures

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

MCQ 41-mark 4

2000Questions per year2026

Questions 1–4 of 4

Q1GATE 2014 (Session 3)1 markMCQ−0.33 if wrong
Consider the following rooted tree with the vertex labelled P as the root
PQRSTUVW
The order in which the nodes are visited during an in-order traversal of the tree is

Q2GATE 20071 markMCQ−0.33 if wrong
A complete n-ary tree is a tree in which each node has n children or no children. Let I be the number of internal nodes and L be the number of leaves in a complete n-ary tree. If L = 41, and I = 10, what is the value of n?

Q3GATE 20051 markMCQ−0.33 if wrong
In a complete k-ary tree, every internal node has exactly k children. The number of leaves in such a tree with n internal nodes is:

Q4GATE 20021 markMCQ−0.33 if wrong
The number of leaf nodes in a rooted tree of n nodes, with each node having 0 or 3 children is

Keep practising

Topics in Data Structures

All CS topics ›