Revision Notes
Cambridge A Level Computer Science (9618): Computational Thinking Skills – Revision Notes
Condensed notes on abstraction, abstract models, decomposition, procedures and functions for Cambridge AS Computer Science 9618 9.1, with a self-test.
- Subject
- Computer Science
- Level
- AS LEVEL
- Topic
- Topic 9: Algorithm Design and Problem-solving
- Author
- Marlbridge Academic Team
- Updated
- Reviewed by
- Harris Khan (what this means)
Aligned to Cambridge A Level Computer Science (9618), 2026. Official specification .
Syllabus page (what it covers and how it is assessed): Cambridge A Level Computer Science.
Syllabus points this page covers
9618 (AS Level)
- 9.1 Computational Thinking Skills
Found an error? Report a correction.
Need help with this topic? Request a free trial class for A Level Computer Science (9618).
Quick-recall notes for 9.1 Computational Thinking Skills (AS content, mainly Paper 2). The Computational Thinking Skills study guide works through a full abstract model and decomposition; the Computational Thinking Skills practice questions give exam-style practice. Section 9.2 is in the Algorithms revision notes.
What the syllabus wants
- Abstraction: its need, benefits and purpose; produce an abstract model containing only essential details.
- Decomposition: describe and use it; break a problem into sub-problems that become program modules (procedures and functions).
Abstraction in four lines
- Definition: removing or hiding details that are not needed to solve the problem, keeping only the essential ones.
- Abstract model: the simplified representation that results.
- Purpose: to make the problem manageable and representable in a program.
- Key idea: what is “essential” depends on the purpose of the program.
Benefits of abstraction
| Benefit | Because |
|---|---|
| Problem easier to understand | Fewer details to consider at once |
| Faster design and development | Less to plan and write |
| Smaller program, less memory and processing | Unneeded data is not stored or processed |
| Easier testing and maintenance | Fewer parts that can go wrong |
| Solution fits user needs | Design focuses on what the user requires |
Producing an abstract model: routine
- State the purpose of the program in a sentence.
- List the real-world details.
- For each, include or exclude, with a reason linked to the purpose.
- Write the model: the data items (often as a record type) and any rules.
- Leave out values that can be calculated from others.
Example: a school bus app that shows arrival times needs stop names, stop order and timetable times; it does not need the driver’s name, the bus colour or the exact road layout.
Decomposition in four lines
- Definition: breaking a problem into smaller sub-problems, each easier to solve.
- Repeat until each part can be solved directly.
- Each part becomes a module.
- Modules are procedures (do a task) or functions (do a task and return one value).
Procedure or function?
| Clue in the task | Module |
|---|---|
| “Calculate”, “find”, “check whether”, “return” a single answer | Function |
| “Output”, “display”, “save”, “update”, “print” with no answer needed back | Procedure |
FUNCTION Fine(DaysLate : INTEGER) RETURNS REAL
RETURN DaysLate * 0.20
ENDFUNCTION
PROCEDURE ShowFine(Name : STRING, Amount : REAL)
OUTPUT Name, " owes ", Amount
ENDPROCEDURE
CALL ShowFine("Lee", Fine(6))
A function is used inside an expression; a procedure is used with CALL.
Benefits of decomposition
| Benefit | Explanation to give |
|---|---|
| Simpler sub-problems | Each can be understood and solved on its own |
| Separate testing | An error can be traced to one module |
| Teamwork | Modules can be written by different programmers at the same time |
| Reuse | A module can be called many times, or used in other programs |
| Maintenance | A change affects one module, not the whole program |
Key terms
| Term | Meaning |
|---|---|
| Abstraction | Removing unnecessary detail, keeping what is essential for the purpose |
| Abstract model | Simplified representation of a system that keeps only essential details |
| Decomposition | Breaking a problem into sub-problems |
| Module | Self-contained part of a program that performs one task |
| Procedure | Module that performs a task; called with CALL |
| Function | Module that performs a task and returns a single value |
| Parameter | Value passed into a module |
Exam traps
- Abstraction removes detail; decomposition splits the problem. Do not swap them.
- Exclusions need a reason linked to the purpose, not “it is not needed”.
- A function returns a value; a procedure does not.
- Benefits need the “because”: “easier to test, because each module is tested separately”.
- Do not store values that can be calculated from stored ones (e.g. age from date of birth).
- Name sub-problems as actions: “calculate fine”, not “fine”.
Self-test
- Define abstraction.
- State the purpose of abstraction.
- Give two benefits of abstraction.
- A cinema booking program shows free seats. Give one detail to include and one to exclude, with reasons.
- Why might two programs about the same object have different abstract models?
- Define decomposition.
- Give two benefits of decomposition.
- What is the difference between a procedure and a function?
- A module must decide whether a password is strong enough. Procedure or function? Why?
- A module must print a receipt. Procedure or function?
- Why should “age” not be stored if “date of birth” is stored?
- How does decomposition help a team of programmers?
Answers
- Removing or hiding details that are not needed for the solution, leaving only the essential details.
- To make the problem manageable / reduce it to what is needed so it can be modelled in a program.
- Any two: easier to understand; quicker to design and write; less data to store and process; easier to test and maintain; focuses on user needs.
- Include seat number and whether it is booked (needed to show free seats); exclude seat colour (does not affect whether it is free).
- Each program has a different purpose, so different details are essential.
- Breaking a problem down into smaller sub-problems that are easier to solve.
- Any two: each part is simpler; modules tested separately; work shared; modules reused; easier maintenance.
- A function returns a single value and is used in an expression; a procedure does not return a value and is called as a statement.
- Function: it returns one answer (TRUE or FALSE).
- Procedure: it performs an action and returns nothing.
- Age can be calculated from date of birth, and a stored age would become out of date.
- Different programmers can write and test different modules at the same time.
Related resources
-
Practice questions
Cambridge A Level Computer Science (9618): Algorithm Design and Problem-solving – Practice Questions
Paper 2-style questions with answers on abstraction, decomposition, identifier tables, flowcharts, pseudocode and stepwise refinement for Cambridge AS 9618.
Computer Science · Cambridge · AS Level
Try questions -
Revision notes
Cambridge A Level Computer Science (9618): Algorithm Design and Problem-solving – Revision Notes
Revision notes on abstraction, decomposition, identifier tables, structured English, flowcharts, pseudocode and stepwise refinement for Cambridge AS 9618.
Computer Science · Cambridge · AS Level
Revise topic -
Study guides
Cambridge A Level Computer Science (9618): Algorithm Design and Problem-solving – Study Guide
Cambridge 9618 Topic 9 study guide: abstraction, decomposition, identifier tables, structured English, flowcharts, pseudocode and stepwise refinement.
Computer Science · Cambridge · AS Level
Read guide
Get free revision emails (optional)
Occasional emails with practice questions, worked explanations and links to free resources for the qualification and subjects you choose. No spam, and you can unsubscribe from any email. The free tools on this site never need an email.