Exam-style question
Try this first
Which statement best describes the representation of data in an abstraction?.
- A.The details of how the data is actually represented are hidden
- B.The data must always be represented by a single primitive value
- C.The user of the data object must know every storage location
- D.The representation can never be changed after the object is created
Model answer
What a good answer should say
- The details of how the data is actually represented are hidden
Explanation
Why this works
Data abstraction hides the details of the actual representation from the code using the data object.
Common mistake
No common mistake is linked to this question yet.
