Abstraction
Learn Abstraction for GCSE Computer Science with this free worksheet and full mark scheme — Foundation and Higher exam-style questions with worked answers for AQA GCSE Computer Science (8525). Abstraction removes unnecessary detail from a problem so you can focus on what matters.
Free downloads
These worksheets and mark schemes are original, written for Virtus Academy and checked against the current AQA specification. Every worksheet comes with a full mark scheme.
Topic overview
Abstraction is the process of removing unnecessary detail from a problem so that only the information needed to solve it remains.
A London Underground map is the standard example. It removes the true geographical positions of the stations, the distances between them and the curves of the tunnels. What it keeps is the order of stations on each line and where lines connect — which is all a passenger needs.
The benefit is that the problem becomes simpler and faster to solve, and the solution works for a wider range of cases. The risk is removing something that turns out to matter: a map that omitted interchange stations would be useless, however clean it looked.
Revision notes
What abstraction does
It removes detail that is not needed to solve the problem.
What counts as unnecessary depends entirely on the problem. Road curvature matters to a mapmaker but not to a passenger deciding which train to catch.
The Underground map example
Removed: true geographical positions, real distances, tunnel curvature, surface features.
Kept: the order of stations on each line, which lines connect where, and the line each station is on. The result is far easier to read than a geographically accurate map.
Benefits and risks
Benefits: the problem is simpler, the solution is faster to produce, and it applies to more cases.
Risk: removing something that turns out to be needed. Deciding what to keep requires understanding what the solution must actually do.
Key points
- Abstraction removes unnecessary detail.
- What is unnecessary depends on the problem.
- The Underground map is the standard example.
- It removes true positions and distances.
- It keeps station order and connections.
- Removing needed detail is the main risk.
Worked examples
Example 1
State one piece of information kept on an Underground map and one that is removed. [2 marks]
Working
Example 2
A program models a car journey to calculate fuel used. State two details abstraction would remove. [2 marks]
Working
Example 3
Explain one benefit of using abstraction. [2 marks]
Working
Common mistakes
Removing detail that is actually needed.
Only remove what does not affect the solution.
Saying abstraction simplifies by deleting data at random.
The removal is deliberate and based on relevance.
Confusing abstraction with compression.
Compression reduces file size; abstraction removes irrelevant detail from a problem.
Giving a vague example.
Name specific details kept and removed.
Exam tips
- Name specific details kept and removed.
- Judge relevance against what the solution must do.
- Use the Underground map as your example.
- Say unnecessary detail rather than just detail.
Key terms
- Abstraction
- Removing unnecessary detail from a problem.
- Relevant
- Affecting the solution to the problem.
- Model
- A simplified representation of a real situation.
- Underground map
- The standard example of abstraction.
Related topics
Written and reviewed against the current AQA specification. Spotted an error? Let us know.