Exam-style question
Try this first
Explain how a tree can be used as an example of a data abstraction built through composition. Your answer should refer to data objects, compound data and why the tree is an example of composition.
Answer and explanation
Concise answer
A tree can be built by combining individual data objects into a compound data structure.
Why this is correct
The essential points are that separate data objects are combined, the result is compound data, and a tree is an example of a data abstraction created in this way.
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.
