User Defined Data Types Flashcards
1
Q
User defined data types
A
- To create a new data type
- To allow data types not available in a programming language to be constructed.
2
Q
Advantages of UDTs
A
- Ability to self-document user data structures
- Let’s user to group data of different types in a single variable
3
Q
Disadvantage of UDT
A
- Only possible if a programming language offers support for the construct
4
Q
Define non composite data types
A
A single data type test does not reference any other data type
5
Q
Enumerated data type
A
- Defines a list of possible values.
6
Q
Pointer data type
A
Used to reference a memory location
7
Q
Composite user defined data type
A
- Data type defined from reference to at least one data type.
8
Q
Record data type
A
- Collection of related values with different data types.
9
Q
Set data type
A
- Supports mathematical operations
10
Q
Class
A
Gives the properties and methods for an object