Worked solution from the Data Representation Paper 3 Advanced Theory booklet, Part 1 of 3.
Declare a variable whose type is the record type.
DECLARE Member1 : ClubMember
Correct declaration [1]
Use the variable name, a dot and the field name. No quotes for a number or TRUE.
Member1.Code ← 984632 Member1.FeesPaid ← TRUE
Code assigned correctly [1]
FeesPaid assigned correctly [1]
List the activities in brackets.
TYPE Activity = (Badminton, Football, Golf, Snooker, Swimming, Tennis)
TYPE Activity = [1]
All six activities in brackets [1]
The new field uses the enumerated type.
DECLARE Choice : Activity
Correct declaration of Choice with type Activity [1]
▶ Whole paper
Video solution of the whole paper · by Zafar Ali Khan (ZAK). Tap the picture to open it on YouTube.
Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.