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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a composite data type

A
  • Data type that refers to other data types
  • Constructed from other data types
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a pointer data type

A
  • A user defined, non composite data type
  • referencing a memory location
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What operations does a set support

A
  • Checks if vaues exists
  • Delete/Add data in a set
  • Union two sets
How well did you know this?
1
Not at all
2
3
4
5
Perfectly