Chapter 12 (File Management) Flashcards
What are some desirable properties of files?
Long-term existence
Shareable between processes
Structure
What operation allows a process to perform functions on a file?
Open
What is a field?
Basic element of data containing a single value
T/F A field can only be fixed length
F, fixed or variable length
What is a record?
Collection of related fields treated as a unit
T/F A record cannot be variable length
F, it can
What is a file?
Collection of similar records treated as a single entity
What is a database?
Collection of related data (1 or more files)
What are the criteria for choosing a file organization?
Rapid access
Ease of update
Economy of storage
Simple maintenance
Reliability
List the five fundamental file organizations
Pile
Sequential file
Indexed sequential file
Indexed file
Direct or hashed file
How does pile collect data?
In the order it arrives
How is data accessed in pile?
Exhaustive search
What is the purpose of pile?
Accumulate a mass of data and save it
Which file organization may be useful to store data prior to processing it?
Pile
T/F In a sequential file, some fields are different
F, all are the same
What are the attributes of a sequential file?
Field names and lengths