Worked solution from the Data Representation Paper 3 Advanced Theory booklet, Part 1 of 3.
BuildingRegister.BuildingID ← 1067 BuildingRegister.BuildingGroup ← "house"
BuildingID assigned 1067 [1]
BuildingGroup assigned the text house in quotes [1]
TYPE BuildingType = (house, bungalow, apartment, farm)
TYPE BuildingType = [1]
(house, bungalow, apartment, farm) [1]
DECLARE BuildingGroup : BuildingType
Field declared with the type BuildingType [1]
House is now an enumerated value, so no quotes.
BuildingRegister.BuildingGroup ← house
Assignment with house and no quotes [1]
PRIVATE OwnerName : STRING
PRIVATE OwnerName : STRING [1]
Private properties can only be accessed by the class's own methods [1]
This is encapsulation: the data is hidden, so other code cannot change it by mistake [1]
▶ Whole paper
Video solution of the whole paper · by qiphyedu. 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.