Chapter 16 Data Representation Flashcards
user defined data type
A data type derived from one or more existing datatypes
used to extend the built-in datatypes
programmer’s requirement
3
why are user defined data types necessary
no suitable datatype is provided by the language used
if a programmer needs a specific datatype
that meets program requirements
2
non-composite datatype
single datatype that does not refer to another datatype
e.g: enumerated, pointer, real, string, char, boolean
composite datatype
datatype that refers to other datatypes
data type is constructed from other datatypes
e.g: record, list, set, array, class, queue, linked list, dictionary
record
collection of related items which may be of different datatypes
list
indexed collection that can contain different datatypes
set
supports mathematical operation
class
gives properties and methods for an object
array
collection of items of the same datatype
enumerated datatype
non-composite
defined by a given list of all possible values
in an order
pointer datatype
non-composite
used to reference a memory location
dereferencing
getting the value in an address
record datatype
composite datatype
a collection of multiple datatypes
declaring a range
0-89
DECLARE number : 0..89
file organization
Refers to the way data is stored in a file
serial file organization
- Data is stored in chronological order
- Easy to append data to the end of the file
- Allows the data to be read in order of when they were taken
- No KEY FIELDS need to be added