Chapter 16 Data representation Flashcards
Which are the User defined data types?
Non-Composite user-defined data types
Composite user-defined data types
Why is it important to use user-defined data types?
To define the type of data is crucial in bigger codes for eviting errors
What data types are non-composite user-defined data types?
Enumerated data type - containing a list of possible values
Pointed data type - used to reference a memory location
What data types are composite user-defined data types?
Record data type - can contain data that have different data types when these form a coherent whole.
Set data type - allows a program to create sets and to apply the mathematical operations defined in set theory
What is a binary file?
A file coded in binary code that can be easily read by a computer.
What is a record?
A collection of fields containing data values
What is a sequential file?
A sequential file is similar to serial files but the records are ordered.
What does file access mean?
The editing or viewing of a file
How do you differenciate negative numbers from positive ones?
By looking at the first number. If the first number is 1 than the number is negative and if it is 0 than it is positive.