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
Answer and explanation
Concise answer
A compound procedure formed through composition
Why this is correct
prepareReport combines several procedures to form one larger procedure, so it is a composition abstraction.
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.
