Exam-style question
Try this first
A programmer is given a detailed description of a task. Which action is an example of abstraction?.
- A.Keeping every detail exactly as it was provided
- B.Removing details that are not needed to solve the task
- C.Replacing the task with a completely unrelated task
- D.Adding new details that were not part of the original task
Model answer
What a good answer should say
- Removing details that are not needed to solve the task
Explanation
Why this works
Abstraction involves removing unnecessary detail while retaining enough information to represent and solve the problem.
Common mistake
No common mistake is linked to this question yet.
