0
0
Data Structures Theoryknowledge~20 mins

Complete vs full vs perfect binary trees in Data Structures Theory - Practice Questions

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Binary Tree Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Identify the type of binary tree

Which of the following best describes a full binary tree?

AA tree where every node has either 0 or 2 children.
BA tree where all levels except possibly the last are completely filled, and all nodes are as far left as possible.
CA tree where all internal nodes have two children and all leaves are at the same level.
DA tree where every node has at most one child.
Attempts:
2 left
💡 Hint

Think about the number of children each node can have in a full binary tree.

🧠 Conceptual
intermediate
2:00remaining
Characteristics of a complete binary tree

Which statement correctly describes a complete binary tree?

AAll levels except possibly the last are completely filled, and all nodes in the last level are as far left as possible.
BAll levels are fully filled, and all leaves are at the same depth.
CEvery node has either 0 or 2 children.
DEvery node has at most one child.
Attempts:
2 left
💡 Hint

Consider how nodes are arranged especially on the last level.

🧠 Conceptual
advanced
2:00remaining
Perfect binary tree properties

Which of the following is true about a perfect binary tree?

AIt is a tree where all levels except the last are filled, and the last level is filled from left to right.
BIt is a tree where every node has at most one child.
CIt is a full binary tree where all leaves are at the same level, and all internal nodes have two children.
DIt is a tree where nodes can have any number of children.
Attempts:
2 left
💡 Hint

Think about both fullness and leaf level uniformity.

Comparison
advanced
2:00remaining
Comparing tree types by node count

Given a binary tree with height h, which tree type guarantees exactly 2^(h+1) - 1 nodes?

AComplete binary tree
BFull binary tree
CAny binary tree
DPerfect binary tree
Attempts:
2 left
💡 Hint

Recall the formula for the number of nodes in a perfectly balanced tree.

Reasoning
expert
2:00remaining
Determining tree type from node arrangement

You have a binary tree where every level except the last is fully filled, the last level is filled from left to right, but some nodes have only one child. What type of binary tree is this?

AFull binary tree
BComplete binary tree
CPerfect binary tree
DNeither complete, full, nor perfect
Attempts:
2 left
💡 Hint

Focus on the arrangement of nodes and the presence of nodes with only one child.