Skip to main content
A-LevelComputer ScienceProgramming9618/32 · May/June 2025 · Q16 Marks

Data types can be defined using pseudocode. The composite record data type, Departure, is used to represent flights from Cambridge Airport and is defined in pseudocode as: TYPE Departure DECLARE FlightNumber : STRING DECLARE Destination : STRING DECLARE FlightDate : DATE DECLARE Gate : STRING DECLARE Airline : STRING ENDTYPE A variable, Flight1, is declared in pseudocode as: DECLARE Flight1 : Departure

  1. (a)Write pseudocode to store the following details to Flight1: Field | Data FlightNumber | SB2789 Destination | Dublin FlightDate | 30/07/2025 Gate | N03 Airline | Cambridge Airways[3]
  2. (b)(i)The data type for Gate is changed to an enumerated data type, GateID. Write a pseudocode statement to declare GateID to hold the identity codes for the airport gates: N01, N02, N03, W01, W02, W03, W04[2]
  3. (b)(ii)Write the new pseudocode statement required to replace the declaration of Gate in Departure.[1]

Mark scheme

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

  1. MP1 Use of correct Flight1 variable with given field names
  2. MP2 Correct assignments of four string data values
  3. MP3 Correct assignment of date data value
  4. Flight1.FlightNumber ← "SB2789"
  5. Flight1.Destination ← "Dublin"
  6. Flight1.FlightDate ← 30/07/2025
  7. Flight1.Gate ← "N03"
  8. Flight1.Airline ← "Cambridge Airways"
  9. MP1 TYPE GateID =
  10. MP2 (N01, N02, N03, W01, WO2, W03, W04)
  11. TYPE GateID = (N01, N02, N03, W01, WO2, W03, W04)
  12. DECLARE Gate : GateID

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