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

Tickets for a theme park are booked online. An adult ticket costs $12.99 and a child ticket costs $7.99. A booking fee of $1.99 is added to the total cost of each booking.

  1. (a)Write an algorithm in pseudocode to: • input the number of adult tickets for a booking • input the number of child tickets for a booking • calculate and output the total cost of the booking using an appropriate message.[4]
  2. (b)Each booking must have at least one adult ticket. Explain how the algorithm could be changed to repeatedly ask for the number of adult tickets if the number input is less than 1. Any code used must be fully explained.[4]
  3. (c)(i)The theme park has rules for a person to be able to go on a ride. A person can go on a ride (X = 1) only if they: • are 1.4 metres tall or over • are 12 years old or over • do not have a medical condition. Input Description Binary value A under 1.4 metres 0 A 1.4 metres or over 1 B under 12 years old 0 B 12 years old or over 1 C does not have a medical condition 0 C has a medical condition 1 Write the logic expression for this problem. X =[2]
  4. (c)(ii)Complete the truth table for this problem. A B C Working space X 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1[4]

Mark scheme

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

  1. [1] (a) input of adult and child places
  2. [1] (a) calculation of total of adults and child places
  3. [1] (a) with booking fee added
  4. [1] (a) output of the total using an appropriate message
  5. [1] (b) By adding a while loop//repeat until loop
  6. [1] (b) with correct condition
  7. [1] (b) With a suitable message
  8. [1] (b) input of adult inside the loop
  9. [1] (c)(i) A AND B
  10. [1] (c)(i) AND NOT C
  11. [1] (c)(i) X = A AND B AND NOT C
  12. [4] (c)(ii) 8 correct outputs
  13. [3] (c)(ii) 6/7 correct outputs
  14. [2] (c)(ii) 4/5 correct outputs
  15. [1] (c)(ii) 2/3 correct outputs
  16. (c)(ii) X column values: 0, 0, 0, 0, 0, 0, 1, 0

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