Skip to main content
A-LevelComputer ScienceProgramming9618/21 · Oct/Nov 2021 · Q114 Marks

Sylvia is testing a program that has been written by her colleague. Her colleague tells her that the program does not contain any syntax errors.

  1. (a)(i)State what her colleague means by “does not contain any syntax errors”.[1]
  2. (a)(ii)Identify and describe one other type of error that the program may contain. Type of error Description[2]
  3. (b)Complete the following table by giving the appropriate data type in each case. Use of variable The average mark in a class of 40 students An email address The number of students in the class To indicate whether an email has been read Data type[4]
  4. (c)(i)An airline wants to provide passengers with information about individual flights and allow them to book their flight using an online booking system. Tick (✔) one box in each row of the table to indicate whether each item of information would be essential for the customer when making the booking. Information Departure time Flight number Departure airport Aircraft type Ticket price Number of seats in aircraft Essential Not essential[3]
  5. (c)(ii)Identify the technique used to filter out information that is not essential when designing the booking system and state one benefit of this technique. Technique Benefit[2]
  6. (c)(iii)Identify two additional pieces of essential information that a passenger might need when booking a flight. 1 2[2]

Mark scheme

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

  1. [1] One from:
  2. • The program obeys the rules / grammar of the programming language used
  3. • The program will run // it can be compiled / interpreted
  4. • Accept by example. e.g. 'no mis-spelt keywords' / 'all brackets match'
  5. [2] One mark for type plus one for corresponding description
  6. Type of error: A logic error
  7. Description: • An error in the algorithm / design of the solution
  8. • the program does not behave as expected / give the expected output.
  9. Accept by example e.g. wrong arithmetic operator used / wrong loop count
  10. OR
  11. Type of error: Run-time error
  12. Description: • The program performs an illegal instruction / invalid operation
  13. Accept by example: divide by zero or endless loop or simply 'crashes' / freezes
  14. [4] Use of variable | Data type
  15. The average mark in a class of 40 students | REAL
  16. An email address | STRING
  17. The number of students in the class | INTEGER
  18. Indicate whether an email has been read | BOOLEAN
  19. One mark per row
  20. [3] Information | Essential | Not essential
  21. Departure time | ✓ |
  22. Flight Number | | ✓
  23. Departure airport | ✓ |
  24. Aircraft type | | ✓
  25. Ticket price | ✓ |
  26. Number of seats in aircraft | | ✓
  27. One mark for two rows correct
  28. Two mark for four rows correct
  29. Three mark for all rows correct
  30. [2] One mark for technique and one for benefit, Max 1 mark for 'Benefit'
  31. Technique: Abstraction
  32. Benefit: • The solution is simplified so easier / quicker to design / implement
  33. • The system is tailored to the need of the user
  34. [2] Answers include:
  35. • Destination / arrival airport
  36. • Arrival time / flight duration
  37. • Date of flight
  38. • Seat number
  39. • Seat availability
  40. Max 2 marks

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, 14 marks.
Source
A-Level Computer Science, Oct/Nov 2021 Paper 2 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