User-defined Data Types (Cambridge (CIE) A Level Computer Science): Exam Questions

Exam code: 9618

32 mins6 questions
1a3 marks

Describe the user-defined data type set.

1b4 marks

Write pseudocode statements to declare the set data type, SymbolSet, to hold the following set of mathematical operators, using the variable Operators.

+ – * / ^

2a3 marks

Describe the user‑defined data type record.

2b4 marks

A programmer defines a record, Order, to store the following data:

  • account number

  • order number

  • order price

  • order date.

Write pseudocode statements to define this record.

33 marks

Explain what is meant by non-composite and composite data types.

4a3 marks

Explain what is meant by the term non-composite data type and give an example of a non-composite data type.

4b4 marks

Write pseudocode statements to declare the set data type EvenNumbers to hold this set of even numbers between 2 and 12:

2, 4, 6, 8, 10,12

54 marks

Describe what is meant by enumerated and pointer data types.

64 marks

Describe what is meant by composite and non‑composite data types.