Photo AI

The airport stores information about its employees - Edexcel - GCSE Computer Science - Question 4 - 2020 - Paper 1

Question icon

Question 4

The-airport-stores-information-about-its-employees-Edexcel-GCSE Computer Science-Question 4-2020-Paper 1.png

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

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

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

Answer

  1. Open
  2. Close

Join the GCSE students using SimpleStudy...

97% of Students

Report Improved Results

98% of Students

Recommend to friends

100,000+

Students Supported

1 Million+

Questions answered

;