Skip to main content
O-LevelComputer ScienceAlgorithm design and problem-solving2210/22 · May/June 2015 · Q44 Marks

Four programming concepts and four examples of programming code are shown below. Draw a line to link each programming concept to the correct example of programming code. Programming concept: Counting, Repetition, Selection, Totalling. Example of programming code: Sum = Sum + Value[n], IF Value = 10 THEN PRINT 'X', FOR Counter = 1 TO 10, Amount = Amount + 1, Sum = Num1 + Num2 [Figure 4.1]

  1. Four programming concepts and four examples of programming code are shown below. Draw a line to link each programming concept to the correct example of programming code. Programming concept: Counting, Repetition, Selection, Totalling. Example of programming code: Sum = Sum + Value[n], IF Value = 10 THEN PRINT 'X', FOR Counter = 1 TO 10, Amount = Amount + 1, Sum = Num1 + Num2[4]

This question uses a diagram from the original paper, which isn't shown here. Open the full paper from the past papers archive to see it.

Mark scheme

Marking points from the official mark scheme (May/June 2015). The mark or mark type is shown in brackets.

  1. [4] 1 mark for each correct line, two lines from one box not allowed Counting -> Amount = Amount + 1 Repetition -> FOR Counter = 1 TO 10 Selection -> IF Value = 10 THEN PRINT 'X' Totalling -> Sum = Sum + Value[n]

Write your answer and get it marked

On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.

Sign up free →

About this question

Topic
Algorithm design and problem-solving, O-Level Computer Science (syllabus 2210). Structured question, 4 marks.
Source
O-Level Computer Science, May/June 2015 Paper 2 Variant 2, question 4.

Questions and mark schemes are from past examination papers and remain the copyright of the exam board. How Oracle Prep builds its content

Related Computer Science questions

© 2026 Oracle Prep