Binary Tree Fundamentals
- 15Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
15 questions
- 1In a full binary tree, any node that has children must have exactly_____children.
Hint
Think about the requirement that no node can have only one child.
Answer
two
- 2In a complete binary tree, nodes are filled in order: top to bottom and_____.
Hint
Consider how you would fill a tree level by level without gaps.
Answer
left to right
- 3A perfect binary tree is both complete and_____.
Hint
Think about the two properties combined: all leaves on same level and no nodes with only one child.
Answer
full
- 4In a perfect binary tree, all leaf nodes are on the same_____.
Hint
Consider the uniformity of depth for leaves.
Answer
level
- 5A binary heap is typically implemented as a_____binary tree.
Hint
Recall the structure requirement for efficient array representation.
Answer
complete
- 6In a pre-order traversal, the node is visited_____the left and right subtrees.
Hint
The prefix 'pre' indicates the node is visited first.
Answer
before
- 7In an in-order traversal, the node is visited_____the left subtree and before the right subtree.
Hint
The prefix 'in' suggests the node is visited in between the subtrees.
Answer
after
- 8In a post-order traversal, the node is visited_____the left and right subtrees.
Hint
The prefix 'post' means after.
Answer
after
- 9The prefix in the traversal name (pre, in, post) indicates when we_____the node.
Hint
Think about what action we perform on the node relative to subtrees.
Answer
visit
- 10In recursive tree traversal, the same_____is executed at each node.
Hint
Consider the set of steps performed at each node.
Answer
policy
- 11The state of recursion in a tree traversal is maintained on the_____.
Hint
Think about where function call information is stored.
Answer
call stack
- 12Recursion can be replaced by using an explicit_____data structure for iterative traversal.
Hint
Consider the data structure that mimics function call behavior.
Answer
stack
- 13A binary search tree has the property that all nodes in the left subtree are_____than the root.
Hint
Compare values relative to root.
Answer
less
- 14Performing an in-order traversal on a binary search tree yields nodes in_____order.
Hint
Think about the result of visiting left, node, right on a sorted structure.
Answer
increasing
- 15The time complexity of a traversal that visits all n nodes of a tree is_____.
Hint
Consider the relationship between number of nodes and operations.
Answer
O(n)

Ask anything
We've read this whole study set, so questions about it get the best answers.