Exam-style question
Try this first
Explain the difference between procedural abstraction and functional abstraction. Your answer should describe what is produced by procedural abstraction and what additional idea is required for functional abstraction.
Model answer
What a good answer should say
- Procedural abstraction produces a procedure.
- Functional abstraction requires a further abstraction that disregards the particular computation method.
- The result can then be treated as a function whose use is based on the result it provides rather than on the method used to calculate that result.
Explanation
Why this works
A complete answer must identify the result of procedural abstraction as a procedure and must explain that functional abstraction goes further by hiding or disregarding the particular computation method.
Common mistake
No common mistake is linked to this question yet.
