Exam-style question
Try this first
A programmer uses a stack without needing to know whether it is implemented using an array and a top-of-stack pointer. What does this illustrate?.
- A.Data abstraction
- B.Displaying implementation details
- C.Replacing a compound data object with a primitive type
- D.Preventing new data objects from being constructed
Answer and explanation
Concise answer
Data abstraction
Why this is correct
The use of the stack is separated from the details of how the stack is constructed, which illustrates data 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.
