Past-paper question · 2024 May-June · Paper 22 · Q3(b)

Question 3(b) 2024 · May-June · Paper 22 · 3 marks

Original past-paper question for 3(B)
Original past-paper question for 3(B)
Reveal official mark-scheme answer Official mark-scheme answer for 3(B)

Official answer for Question 3

Part (b)

✓
One mark per point:

Question 3

Question 1

✓
Allows for iteration / can use a loop to access the records / data items

Question 2

✓
Use of index to directly access a record in the array // Example of
✓
simplification of code e.g. use of dot notation Item[1].Stage

Question 3

✓
Simplifies the code / algorithm // Reduces duplication of code // Program
✓
easier to write / understand / maintain / test / debug // Data items/record
✓
easier to search / sort / manipulate
✓
Question
✓
Answer
✓
Marks

Mark scheme 9618_s24_ms_22.pdf →

Show text version of question

Question 3

Part (b)

Question 3

A factory needs a program to help manage its production of items.

Data will be stored about each item.

The data for each item will be held in a record structure of type Component.

The programmer has started to define the fields that will be needed as shown in the table.

Field Example value Comment Item_Num 123478 a numeric value used as an array index Reject FALSE TRUE if this item has been rejected Stage 'B' a letter to indicate the stage of production Limit_1 13.5 any value in the range 0 to 100 inclusive Limit_2 26.4 any value in the range 0 to 100 inclusive

Part (b)

State three benefits of using an array of records to store the data for all items.

1 ................................................................................................................................................

...................................................................................................................................................

2 ................................................................................................................................................

...................................................................................................................................................

3 ................................................................................................................................................

...................................................................................................................................................

[3]

Question 8

Topic relevance

Why this question appears here

82% assigned-topic match · Programming › Constructs

Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.

Permanent source page: Educate A Change · From 9618_s24_qp_22.pdf

Keep practising this topic