Enumerated and pointer are two non-composite data types.
- (a)Write pseudocode to create an enumerated type called Parts to include these parts sold in a computer shop: Monitor, CPU, SSD, HDD, LaserPrinter, Keyboard, Mouse[2]
- (b)Write pseudocode to create a pointer type called SelectParts that will reference the memory location in which the current part name is stored.[2]
Mark scheme
Marking points from the official mark scheme (Oct/Nov 2021). The mark or mark type is shown in brackets.
- [2] One mark for each marking point (Max 2)
- • TYPE Parts =
- • (Monitor, CPU, SSD, HDD, LaserPrinter, Keyboard, Mouse)
- Complete answer
- TYPE Parts = (Monitor, CPU, SSD, HDD, LaserPrinter, Keyboard, Mouse)
- [2] One mark for each marking point (Max 2)
- • TYPE SelectParts = ^
- • correct data type chosen Parts
- Complete answer
- TYPE SelectParts = ^Parts
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 →