Cambridge O Level Computer Science 2210 · 8.1 Programming concepts

Q14 · 2210/22/O/N/22 Q2

Worked solution from the Programming Paper 2 Algorithms, Programming and Logic booklet, Part 1 of 3.

Q142210/22/O/N/22original Q2Structured · 4 marks
Question 2 from 2210/22/O/N/22

Worked solution

(a)

Match each concept to its description:

Programming conceptDescription
countingtracking the number of iterations a program has performed in a loop
repetitioncarrying out an action multiple times within a loop structure
selectionbranching off to take a course of action depending on the answer to a question
sequencea set of statements to be executed in order
totallingadding together the numbers in a list of numbers

Each correct line scores 1 mark, to a maximum of four:

counting → tracking the number of iterations a program has performed in a loop [1]

repetition → carrying out an action multiple times within a loop structure [1]

selection → branching off to take a course of action depending on the answer to a question [1]

totalling → adding together the numbers in a list of numbers [1]

sequence → a set of statements to be executed in order is also correct, but the most you can score is 4.

KEY IDEACounting tracks how many times, totalling adds values, repetition is looping, selection is a decision and sequence is order.
TOTAL 4 marks

Official mark scheme

Mark scheme for 2210/22/O/N/22 question 2
VIDEO
▶ Topic lesson

A lesson on this topic · by Mr Bulmer's Learning Zone. Tap the picture to open it on YouTube.

Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.