Question 4
Edexcel Computer Science June 2020 Paper 2GCSE9 marks
On the specification
- (a)(i)
- 6.3 Data types and structures
- (a)(ii)
- 6.3 Data types and structures
- (b)
- 6.4 Input and output
- (c)(i)
- 1.2 Algorithms
- (c)(ii)
- 1.2 Algorithms
- (d)
- 6.2 Program constructs
Question text
4 The airport stores information about its employees. Here is an example of a data structure that holds an employee’s information, including employee number, last name, first name, phone number and monthly salary. 38475 Charters Rebecca 01234567890 1525.00 (a) (i) State the name of this type of data structure. (1) (ii) State the reason why an array is not suitable for storing this information. (1) (b) Name two file handling operations that are used to save data to a file. (2) 1 2 (c) Accessing files may cause errors. Here is an example of an error message. (i) Name this type of error. (1) (ii) Give two reasons why the error in the example might occur. (2) 1 2 (d) A program is used to process employees’ monthly salaries. Explain why an iterative construct is used as part of this process. (2) (Total for Question 4 = 9 marks)