Skip to main content
O-LevelComputer ScienceProgramming2210/22 · Oct/Nov 2020 · Q46 Marks

This pseudocode algorithm allows 5000 numbers to be entered and stored in an array called Number. FOR Count ← 1 TO 5000 INPUT Number [Count] NEXT Count

  1. Extend and re-write the algorithm using pseudocode to also count and output how many of the numbers stored in the array are greater than 500, using the variable Higher. Only output Higher once with an appropriate message.[6]

Mark scheme

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

  1. [6] Any six from: MP1 Initialisation of Higher to 0 before the loop
  2. MP2 Use of IF statement
  3. MP3 Correct condition in IF statement
  4. MP4 Correct counting statement inside loop
  5. MP5 OUTPUT/PRINT statement with correct reference to Higher
  6. MP6 Appropriate message in output
  7. MP7 Correct location of OUTPUT and IF statements

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, 6 marks.
Source
O-Level Computer Science, Oct/Nov 2020 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