Note AcademyNote Academy

Computer Science (AS & A Level) · May / June 2024 · Paper 23 · Question 3

9618

As printed in the paper

The question as text

A record structure is declared to hold data relating to components being produced in a factory: TYPE Component DECLARE Item_ID : STRING DECLARE Reject : BOOLEAN DECLARE Weight : REAL ENDTYPE The factory normally produces a batch (or set) of 1000 components at a time. A global array is declared to store 1000 records for a batch: DECLARE Batch : ARRAY [1:1000] OF Component Two global variables contain the minimum and maximum acceptable weight for each component. The values represent an inclusive range and are declared as: DECLARE Min, Max : REAL

Read automatically from the paper; the printed page above is exact.

Show the answer and mark scheme
  • 3(a)(i)[3]

  • 3(a)(ii)[1]

  • 3(b)[5]

Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.