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

The flowchart below inputs an integer. The predefined function DIV gives the value of the division, for example z ← 11 DIV 3 gives the value Z = 3. The predefined function MOD gives the value of the remainder, for example z ← 11 MOD 3 gives the value Z = 2.

  1. Trace for input value 33Complete a trace table for each of the two input values 33 and 75. Trace table for input value 33 X A B OUTPUT [2]
  2. Trace for input value 75Trace table for input value 75 X A B OUTPUT [2]

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 (Oct/Nov 2016). The mark or mark type is shown in brackets.

  1. [4]
  2. Trace table for input value 33
  3. X: 33, 4
  4. A: 4
  5. B: 1
  6. OUTPUT: 1, 4
  7. (1 mark)
  8. (1 mark)
  9. Trace table for input value 75
  10. X: 75, 9, 1
  11. A: 9, 1
  12. B: 3, 1
  13. OUTPUT: 3, 1, 1
  14. (1 mark)
  15. (1 mark)

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