Skip to main content
O-LevelComputer ScienceProgramming2210/22 · Oct/Nov 2018 · Q44 Marks

A programmer wants to test that the readings from 2000 electricity meters are greater than 400 units and less than 900 units. The programmer uses selection and repetition statements as part of the program. Explain, using programming statements, how selection and repetition could be used in this program.

  1. A programmer wants to test that the readings from 2000 electricity meters are greater than 400 units and less than 900 units. The programmer uses selection and repetition statements as part of the program. Explain, using programming statements, how selection and repetition could be used in this program. Selection Repetition[4]

Mark scheme

Marking points from the official mark scheme (Oct/Nov 2018). The mark or mark type is shown in brackets.

  1. [1] Selection use of IF statement to check the values of the meter readings
  2. [1] IF Reading > 400 and Reading < 900 THEN
  3. [1] Repetition use of FOR loop to check all 2000 meter readings
  4. [1] FOR Meter = 1 TO 2000 ... NEXT

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
Programming, O-Level Computer Science (syllabus 2210). Structured question, 4 marks.
Source
O-Level Computer Science, Oct/Nov 2018 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