13.1 - User Defined Data Types Flashcards
(9 cards)
1
Q
Purpose of user-defined data type
A
- To create a new data type
- To allow data types not available in the programming language
2
Q
Why are user-defined data types necessary
A
- When the programmer needs to specify a new data type to meet the requirments of an application
- When there are no suitable data types provided by the programming language
3
Q
State what is meant by user-defined
A
- Derived from one or more existing data types
- Used to extend built in data types
- Creates data type specific to application
4
Q
Define non composite data type
A
- A single data type that does not reference another data type
- Usually built into the programming language
5
Q
What is a composite data type
A
- Data type that refers to other data types
- Constructed from other data types
6
Q
What is an enumerated data type
A
- Data type used to store constant values
- A list of possible value
- Non composite, user defined
7
Q
What is a pointer data type
A
- A user defined, non composite data type
- referencing a memory location
8
Q
What is a set data type
A
- A data type to create sets and apply mathematical operations
- Contains a collection of unorganized data values
9
Q
What operations does a set support
A
- Checks if vaues exists
- Delete/Add data in a set
- Union two sets