Computational thinking: abstraction, decomposition, algorithmic thinking

10 questions38 marksabout 45 min

Answer on paper first, then reveal the mark scheme one mark at a time.

1Grade 1–32 marks

Define the following computational thinking terms.

(a) Abstraction [1]

(b) Decomposition [1]

2Grade 4–54 marks

A map app shows a simplified map of a bus network. The map is an example of abstraction.

(a) Give two details from the real world that have been removed from the map. [2]

(b) Give one detail that has been kept, and explain why it is needed. [2]

3Grade 1–32 marks

Tick (✓) one box in each part.

(a) Which statement best describes algorithmic thinking? [1]

AWriting a program in a high-level language☐
BWorking out the sequence of steps needed to solve a problem☐
CRemoving detail that is not needed from a problem☐
DTesting a program to find errors☐

(b) Which of the following is an example of abstraction? [1]

ASplitting a game into a menu, a level and a high-score table☐
BWriting the steps to add up a shopping basket☐
CA weather app showing a sun symbol instead of the full forecast data☐
DConverting a flowchart into code☐
Stuck on Computational thinking: abstraction, decomposition, algorithmic thinking?

Get it sorted in a free 30-minute session

We work through your weakest questions on this topic on Zoom. I reply the same day.

4Grade 1–33 marks

A team is developing a satnav app. Three things the team did are described below.

For each description, state which computational thinking technique (abstraction, decomposition or algorithmic thinking) is being used.

(a) The team split the app into separate parts: finding the user's location, finding a route and giving spoken directions. [1]

(b) The map ignores the colour of buildings and the height of trees, and only stores roads and junctions. [1]

(c) The team wrote out the ordered steps needed to find the shortest route between two junctions. [1]

5Grade 4–55 marks

A programmer is designing software for a car park. The diagram shows how the problem has been broken down.

(a) State the computational thinking technique shown in the diagram. [1]

(b) The sub-problem Calculate fee can be broken down further. Give two smaller sub-problems that it could be broken into. [2]

(c) Explain one benefit to the programmer of breaking the problem down in this way before writing any code. [2]

Car park softwareRead numberplateCalculate feeTake paymentOpen barrier
6Grade 4–54 marks

A school library is creating a program to keep track of which books have been borrowed. The programmer uses abstraction to decide which details about each book to store.

(a) Tick (✓) the three details that the program needs to store. [3]

Title of the book☐
Weight of the book☐
Name of the pupil who has borrowed it☐
Colour of the cover☐
Date the book is due back☐
Thickness of the paper☐

(b) Give one reason why it is helpful to leave out the other details. [1]

7Grade 4–54 marks

A student is using algorithmic thinking to find the largest number in a list. The steps have been written down, but they are in the wrong order.

ASet max to the first number in the list
BOutput max
CFor each remaining number in the list, if it is bigger than max, set max to that number
DInput the list of numbers

(a) Write the letters in the correct order. [2]

(b) The list of numbers is 4, 9, 2, 7. Explain what the algorithm would output if step B was carried out before step C. [2]

8Grade 6–74 marks

A company with four programmers is building an online shop. Before writing any code, the project leader decomposes the shop into sub-problems such as 'search for a product', 'manage the basket' and 'take payment'.

Explain how decomposition helps the company with:

(a) sharing the work between the four programmers [2]

(b) testing the online shop. [2]

9Grade 6–74 marks

A programmer is writing a chess game. Inside the program, the board is stored as an 8 × 8 grid of numbers. Each number represents the type of piece on that square (for example 0 = empty, 1 = white pawn, 2 = white knight).

(a) Explain how storing the board in this way is an example of abstraction. [2]

(b) State one detail about a real chess set that a human player can see but the program does not need. [1]

(c) The programmer decides that the numbers must still show which colour each piece is. Explain why this detail cannot be removed. [1]

10Grade 8–96 marks

A school wants a program that checks a draft timetable for clashes. The program has been decomposed, and one of the sub-problems is:

"Check whether any pupil has two lessons at the same time."

(a) Decompose this sub-problem further into three smaller sub-problems. [3]

(b) A programmer suggests that the program does not need to store the name of the teacher for each lesson. Explain whether this abstraction is appropriate for this sub-problem. [2]

(c) Describe what algorithmic thinking adds once the sub-problems have been identified. [1]

Stuck on this topic?

Book a free 30-minute session on WhatsApp and we'll find exactly which step is costing you the marks. Or build a timed paper on it.

Free 30-minute session