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

This is an algorithm to find if a batch of parts has been manufactured successfully.

  1. (a)Complete the trace table using this data: Y, Y, Y, N, Y, Y, Y, Y, N, Y, Y, Y, Y Accept Reject PartOK Error OUTPUT[5]
  2. (b)Describe how the algorithm should be changed to accept 'Y' or 'y' for a successfully manufactured part.[3]

Mark scheme

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

  1. [5] One mark for each column Accept: 0, 1, 2, 3, 3, 4, 5, 6, 7, 7, 8, 9, 10 Reject: 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 PartOK: Y, Y, Y, N, Y, Y, Y, Y, N, Y, Y, Y, Y Error: --, --, --, --, --, --, --, --, --, --, --, --, 20 OUTPUT: --, --, --, --, --, --, --, --, --, --, --, --, Too many rejected 20% error
  2. [3] One mark for each point max three after the Input box // before the first decision box insert a process box to convert the input to upper case OR change the first decision / add another decision box to accept 'y' as well by adding OR PartOK = 'y'

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 3, question 8.

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