Computer Science For First Examination In 2021 9618 · 13

13.1 User-defined data types

6 questions in this subtopic. Open a question to solve it and check the official answer.

Reset
2025 May-June · Paper 31 · Q1(a)

User-defined data types · 2 marks · official answer ready

(a) Write a pseudocode statement to declare the enumerated data type, Vehicle, to hold the identity code of each of the company’s taxis: ..........................................…

2023 May-June · Paper 31 · Q4(a)

User-defined data types · 2 marks · official answer ready

(a) A data type to hold a set of prime numbers below 20. These prime numbers are: .................................................................................................…

2023 May-June · Paper 31 · Q4(b)

User-defined data types · 2 marks · official answer ready

(b) A data type to point to a day in the week, for example Monday. ................................................................................................................…

2023 May-June · Paper 33 · Q4(a)

User-defined data types · 2 marks · official answer ready

(a) A data type to hold a set of prime numbers below 20. These prime numbers are: .................................................................................................…

2023 May-June · Paper 33 · Q4(b)

User-defined data types · 2 marks · official answer ready

(b) A data type to point to a day in the week, for example Monday. ................................................................................................................…

2021 October-November · Paper 31 · Q3(a)

User-defined data types · 2 marks · official answer ready

(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 ..............…