Skip to main content
A-LevelComputer ScienceData types and structures9618/31 · May/June 2025 · Q16 Marks

A programmer is writing a program to manage bookings for a small taxi company. The programmer requires some user-defined data types.

  1. (a)Write a pseudocode statement to declare the enumerated data type, Vehicle, to hold the identity code of each of the company's taxis: M100, M230, T101, T102, T120, T150[2]
  2. (b)Write pseudocode statements to declare the composite data type, Booking, to hold data about taxi bookings. The data required includes: • booking number (any combination of letters and numbers) • destination • client name • client telephone number • date of departure • address for pick-up • the identity code of the taxi used. Use the most appropriate data type in each case, including the enumerated data type from part (a).[4]

Mark scheme

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

  1. [1] MP1 TYPE Vehicle =
  2. [1] MP2 (M100, M230, T101, T102, T120, T150)
  3. [1] MP1 TYPE Booking and ENDTYPE correct
  4. [1] MP2 Declare used correctly for every field in the response
  5. [1] MP3 Any four fields correct
  6. [1] MP4 Remaining fields correct

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
Data types and structures, A-Level Computer Science (syllabus 9618). Structured question, 6 marks.
Source
A-Level Computer Science, May/June 2025 Paper 3 Variant 1, question 1.

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