Describe the user-defined data type record.
- (a)Describe the user-defined data type record.[3]
- (b)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.[4]
Mark scheme
Marking points from the official mark scheme (Oct/Nov 2024). The mark or mark type is shown in brackets.
- [3] MP1 A user-defined record data type is a composite data type
- [3] MP2 It uses other data types in its definition to form a single new data type
- [3] MP3 The data types referenced may be primitive data types from a programming language or they may be other user-defined data types.
- [3] MP4 Includes related items
- [3] MP5 Includes a fixed number of items.
- [4] One mark for TYPE Order and ENDTYPE correct
- [4] One mark for correct use of DECLARE in all declarations seen
- [4] One mark for the two shaded declarations
- [4] One mark for the two unshaded declarations
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 →