Skip to main content
A-LevelComputer ScienceData types and structures9618/31 · Oct/Nov 2022 · Q38 Marks

State what is meant by the term enumerated data type.

  1. (a)State what is meant by the term enumerated data type.[1]
  2. (b)State what is meant by the term pointer data type.[1]
  3. (c)The months of the year are: January, February, March, April, May, June, July, August, September, October, November and December. Write the pseudocode statement to define the data type Quarter1, to hold the names of the first three months of a year.[2]
  4. (d)(i)The composite data type Pet is used to store data about the various pets of a group of students. It uses these fields: Field name Data type PetName String AnimalType String PetAge Integer PetGender Char OwnerName String Write the pseudocode statement to set up a variable for one record of the composite data type Pet.[1]
  5. (d)(ii)Write pseudocode to store the details of the following pet, in the variable you set up in part (d)(i). PetName AnimalType PetAge PetGender OwnerName Tibbles Cat 8 M Jasmine Smith[3]

This question uses a diagram from the original paper, which isn't shown here. Open the full paper from the past papers archive to see it.

Mark scheme

Marking points from the official mark scheme (Oct/Nov 2022). The mark or mark type is shown in brackets.

  1. [1] A (user-defined non-composite) data type with an ordered list of possible values.
  2. [1] A user-defined non-composite data type used to reference a memory location.
  3. [2] Marks as shown in the square brackets: TYPE Quarter1 = (January, February, March) [1] TYPE Quarterl = [1] (January, February, March) [1]
  4. [1] DECLARE Pet1 : Pet
  5. [3] One mark for each point: Correct assignment of all string data values, Correct assignment of char data value, Correct assignment of integer data value
  6. Example answer: Pet1.PetName ← "Tibbles" Pet1.AnimalType ← "Cat" Pet1.PetAge ← 8 Pet1.PetGender ← 'M' Pet1.OwnerName ← "Jasmine Smith"

Write your answer and get it marked

On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.

Sign up free →

About this question

Topic
Data types and structures, A-Level Computer Science (syllabus 9618). Structured question, 8 marks.
Source
A-Level Computer Science, Oct/Nov 2022 Paper 3 Variant 1, question 3.

Questions and mark schemes are from past examination papers and remain the copyright of the exam board. How Oracle Prep builds its content

Related Computer Science questions

© 2026 Oracle Prep