Exam-style question
Try this first
Which statement correctly describes the relationship between procedural abstraction and functional abstraction?.
- A.A procedure is the result of procedural abstraction, while a function requires a further abstraction that disregards the particular computation method
- B.A function is the result of procedural abstraction, and procedural abstraction always hides the computation method completely
- C.Procedural abstraction and functional abstraction are two names for exactly the same abstraction
- D.Functional abstraction exposes the particular computation method so that it can be checked by the caller
Model answer
What a good answer should say
- A procedure is the result of procedural abstraction, while a function requires a further abstraction that disregards the particular computation method
Explanation
Why this works
The specification distinguishes the two stages. Procedural abstraction gives a procedure; functional abstraction goes further by disregarding the particular computation method.
Common mistake
No common mistake is linked to this question yet.
