Exam-style question
Try this first
Which is an example of building a data abstraction through composition?.
- A.Combining data objects to form a tree
- B.Combining unrelated programming languages in one program
- C.Replacing every procedure with a constant
- D.Using only one data object in a program
Model answer
What a good answer should say
- Combining data objects to form a tree
Explanation
Why this works
A data abstraction can be built by combining data objects to form compound data, such as a tree data structure.
Common mistake
No common mistake is linked to this question yet.
