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.
- (a)(i)State what her colleague means by “does not contain any syntax errors”.[1]
- (a)(ii)Identify and describe one other type of error that the program may contain. Type of error Description[2]
- (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]
- (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]
- (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]
- (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] One from:
- • The program obeys the rules / grammar of the programming language used
- • The program will run // it can be compiled / interpreted
- • Accept by example. e.g. 'no mis-spelt keywords' / 'all brackets match'
- [2] One mark for type plus one for corresponding description
- Type of error: A logic error
- Description: • An error in the algorithm / design of the solution
- • the program does not behave as expected / give the expected output.
- Accept by example e.g. wrong arithmetic operator used / wrong loop count
- OR
- Type of error: Run-time error
- Description: • The program performs an illegal instruction / invalid operation
- Accept by example: divide by zero or endless loop or simply 'crashes' / freezes
- [4] Use of variable | Data type
- The average mark in a class of 40 students | REAL
- An email address | STRING
- The number of students in the class | INTEGER
- Indicate whether an email has been read | BOOLEAN
- One mark per row
- [3] Information | Essential | Not essential
- Departure time | ✓ |
- Flight Number | | ✓
- Departure airport | ✓ |
- Aircraft type | | ✓
- Ticket price | ✓ |
- Number of seats in aircraft | | ✓
- One mark for two rows correct
- Two mark for four rows correct
- Three mark for all rows correct
- [2] One mark for technique and one for benefit, Max 1 mark for 'Benefit'
- Technique: Abstraction
- Benefit: • The solution is simplified so easier / quicker to design / implement
- • The system is tailored to the need of the user
- [2] Answers include:
- • Destination / arrival airport
- • Arrival time / flight duration
- • Date of flight
- • Seat number
- • Seat availability
- 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 →