The airport stores information about its employees - Edexcel - GCSE Computer Science - Question 4 - 2020 - Paper 1
Question 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 nam... show full transcript
Worked Solution & Example Answer:The airport stores information about its employees - Edexcel - GCSE Computer Science - Question 4 - 2020 - Paper 1
Step 1
State the name of this type of data structure.
96%
114 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
The type of data structure that holds an employee's information in this example is known as a record. A record is a collection of fields, often of different data types, that are treated as a single unit.
Step 2
State the reason why an array is not suitable for storing this information.
99%
104 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
An array is not suitable for storing this information because it cannot store mixed data types. In the example provided, the employee information includes various data types (e.g., integers for employee number, strings for names, and a floating-point for salary) which an array cannot accommodate without specifying a uniform type.
Step 3
Name two file handling operations that are used to save data to a file.
96%
101 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!