Exam-style question
Try this first
A procedure called prepareReport performs the following steps by using three smaller procedures: getData, processData and displayData. What does prepareReport represent?.
- A.A compound procedure formed through composition
- B.A single data object
- C.A tree data structure formed from data objects
- D.A procedure that contains no abstraction
Model answer
What a good answer should say
- A compound procedure formed through composition
Explanation
Why this works
prepareReport combines several procedures to form one larger procedure, so it is a composition abstraction.
Common mistake
No common mistake is linked to this question yet.
