Cambridge A2 Level Computer Science 9618 · 13.1 User-defined data types

Q9 · 9618/31/O/N/23 Q3

Worked solution from the Data Representation Paper 3 Advanced Theory booklet, Part 1 of 3.

Q99618/31/O/N/23original Q3Structured · 4 marks
Question 3 from 9618/31/O/N/23

Worked solution

Write about each type.

Enumerated: a user-defined non-composite data type [1]

... that has a list of all the possible values, which are in order [1]

Pointer: a user-defined non-composite data type that stores memory addresses only [1]

... and says the type of data held at that memory location [1]

KEY IDEAAn enumerated type lists all its ordered values, and a pointer type holds a memory address and the type of data stored there.
TOTAL 4 marks

Official mark scheme

Mark scheme for 9618/31/O/N/23 question 3
VIDEO
▶ Topic lesson

A lesson on this topic · by ZAINEMATICS. 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.