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
Answer and explanation
Concise answer
A procedure is the result of procedural abstraction, while a function requires a further abstraction that disregards the particular computation method
Why this is correct
The specification distinguishes the two stages. Procedural abstraction gives a procedure; functional abstraction goes further by disregarding the particular computation method.
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.
