Exam-style question
Try this first
What is the main purpose of data abstraction?.
- A.To expose every implementation detail of a data object
- B.To isolate how a compound data object is used from how it is constructed
- C.To ensure that all data objects are represented as arrays
- D.To remove the need for data objects in a program
Answer and explanation
Concise answer
To isolate how a compound data object is used from how it is constructed
Why this is correct
Data abstraction separates the way a compound data object is used from the details of its construction.
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.
