AQA · GCSE · Computer Science · Higher
Completing a pseudo-code record algorithm
The incomplete pseudo-code algorithm is used to store and manage books using records. It should create a record definition called Book with the fields bookName, author and price, and create a variable for each book using that record definition.
| 1 | 2 | author |
| B1 | B2 | Book |
| bookName | i | Real |
| OUTPUT | String | Boolean |
Fill the four gaps in the record-definition skeleton using the items in Table 2. You may need to use some items more than once and will not need all the items.
Practice unavailable
This question can be viewed, but its original response format is not available for practice yet.
Write your answer first. You can study the marking guidance whenever you need it.
Study the marking See what earns credit and compare it with a full-mark answer.
Marking points
- 1 Has at least two correct entries among the four gaps.
- 2 Has at least three correct entries among the four gaps.
- 3 Completes all four gaps correctly for full credit.
Why this answer loses marks
I matched the field gaps but used a variable identifier where the record type is required to create the second record.
The construction gap needs the target record type; a record variable does not define what is being created.