Composite Data Type
-single data type that is referenced from other data type
- Data type can be primitive or user-defined
- Record : a collection related items that have different data types
- Array : indexed collection of items with same data type
- List : indexed collection of items that can have different data types
- Class : gives the properties and methods for an object
Non-composite data type
Enumerated data type
Pointer data type
Why need user-defined data type ?
Changes of Mantissa/Exponent
More bits for mantissa - better precision
More bits for exponent - larger range
Why some binary representation lead to rounding errors ?
Problems occur due to change in the representation of floating-point number
Why floating point number is normalised?
Why binary numbers are stored in normalized form ?
Problem occur when floating point number are not normalised
Overflow
Underflow
Sequential
sequential
Random
direct
Serial
direct/sequential
Why serial file organisation ?
Why sequential file organisation ?
Why serial file organisation use sequential access ?
– earliest record is accessed first
- And each successive records is read
- Until final reading has been accessed
Compare serial and sequential
How random file organisation work
How random file organisation’s record is found
Why random file organisation is appropriate
Describe the user-defined data type record