YEAR 1 CO1 WEEK 20 FILE ACCESS METHODS Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What to consider when creating a file?

A

The way we will retrieve information (specific record) for a file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Describe Serial Access File

A

Record in serial file not stored in any particular order except chronologically.
New records appended to the end of the file.
Whole file has to be searched to find a particular record.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to delete records from serial access file.

A

New file is created.
All records up to the record to be deleted and then all records after this.
Previous file is then deleted.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

When do you usually use a serial access file?

A

When order of data doesn’t matter.
There is a small number of records.
Data that must be stored in the order it is received.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Describe a Sequential access file.

A

Records stored one after another in order of the field key (primary key).
Still need to search whole file to find specific record but faster and more efficient than serial.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How to add or remove records for a sequential file.

A

All records are in order of the field key so cannot just add a new record to the end of the file.
File copied up to the position of the new record then the record is inserted. Rest of file is then appended.
Deleting record same as serial.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Describe indexed sequential file organisation.

A

Records sorted according to a primary key but seperare index is also kept.
Index is a additional file contains information about where records are stored and allows them to be accessed directly

How well did you know this?
1
Not at all
2
3
4
5
Perfectly