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]
- 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.
- [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 →