Exam-style question
Try this first
Which use is specifically associated with a pre-order tree-traversal algorithm in the specification?.
- A.Outputting a binary search tree in ascending order
- B.Producing a postfix expression from an expression tree
- C.Copying a tree
- D.Emptying a tree
Answer and explanation
Concise answer
Copying a tree
Why this is correct
The specified use of pre-order traversal is copying a tree. In-order is associated with ascending output from a binary search tree, while post-order is associated with postfix conversion and emptying a tree.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
