Skip to main content
O-LevelComputer ScienceAlgorithm design and problem-solving2210/22 · Oct/Nov 2023 · Q38 Marks

Four pseudocode statements and five pseudocode uses are shown.

  1. (a)Draw one line to link each pseudocode statement to the most appropriate pseudocode use. Not all pseudocode uses will be required. Pseudocode statement CALL Colour(NewColour) Value ← (A1 + A2 + A3) / 3 Loop1 ← Loop1 + 1 IF Count > 7 THEN X1 ← 0 Pseudocode use counting finding an average totalling using a conditional statement using a procedure[4]
  2. (b)A one-dimensional (1D) array called Temperatures[] has 25 elements beginning at index 1. It holds values that range between –20 and 100 inclusive. Write a pseudocode algorithm using a single loop to find the lowest value in this array and output the result only once. You do not need to declare or populate this array.[4]

Mark scheme

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

  1. [4] One mark for each correct line.
  2. CALL Colour (NewColour) -> using a procedure
  3. Value ← (A1 + A2 + A3) / 3 -> finding an average
  4. Loop1 ← Loop1 + 1 -> counting
  5. IF Count > 7 THEN X1 ← 0 -> using a conditional statement
  6. [4] One mark per mark point, max four
  7. MP1 initialise a variable to store the lowest number set to a high value (at least 100) / first value in the array
  8. MP2 loop structure to iterate 25 times
  9. MP3 use of IF to check if the array element is less than the current lowest value
  10. MP4 ...if it is, set this to the lowest value
  11. MP5 output the result (with an appropriate message) after the loop
  12. Example answer: Min ← 100 FOR Count ← 1 TO 25 IF Temperatures [Count] < Min THEN Min ← Temperatures [Count] ENDIF NEXT Count OUTPUT "The lowest temperature is ", Min

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, 8 marks.
Source
O-Level Computer Science, Oct/Nov 2023 Paper 2 Variant 2, question 3.

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