Charcteristics of data types and data structures relevant to selected software tools Flashcards
Character
A character data type holds a single letter, number or symbol and is usually stored in 2 bytes of memory
Text(string)
A text data type consists of a string of characters. The amount of memory used to store the string depends on its length (2 bytes x length of string)
Integer
An integer is a whole number which can be used for mathematical calculations. An integer is usually stored in 4 bytes of memory
Floating point (or decimal)
A floating point number is a number with a fractional part or decimal which can take up to 12 bytes of memory. A floating point number is split into two parts:the mantissa and exponent
Boolean
A data type which holds only two possible values and only requires 1 byte memory
Array
An array is a collection of data items generally of the same data type. Each item in the array is allocated an address
Record
A record is a collection of data items of different data types. Each element of a record is called a field
File
A file data structure can hold numerous data items, arrays or records