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

Write an algorithm, using pseudocode, to input three different numbers, multiply the two larger numbers together and output the result. Use the variables: Number1, Number2 and Number3 for your numbers and Answer for your result.

  1. (a)Write an algorithm, using pseudocode, to input three different numbers, multiply the two larger numbers together and output the result. Use the variables: Number1, Number2 and Number3 for your numbers and Answer for your result.[5]
  2. (b)Give two sets of test data to use with your algorithm in part (a) and explain why you chose each set. Test data set 1 Reason Test data set 2 Reason[4]

Mark scheme

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

  1. [1] Use of correct variables
  2. [1] Input 3 numbers
  3. [1] Check all 3 input numbers are different
  4. [1] Attempt to find the largest two numbers input
  5. [1] Correctly finding the largest two numbers
  6. [1] Multiply their two largest numbers together and assign to variable
  7. [1] Output the result of the multiplication
  8. [1] 7,7,7
  9. [1] should be rejected as numbers are equal
  10. [1] 7,8,9
  11. [1] normal data answer should be 72

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

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