File Organisation Flashcards

1
Q

File

A

A file is collection of related records

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

Record

A

A record is a collection of related fields

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

Variable length field

A

Variable length field has different number of bytes in each record. Variable length field makes it difficult to calculate how much storage space will be required
Variable length field are slower to process by computer as start and end locations have to be calculated at read/write time
Variable length field saves storage space as no blank space
E.g. - Name, Address, email address.

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

Fixed length field

A

Fixed length field has the same number of bytes in each record. Fixed length field makes it easier to calculate how much storage space will be required. Fixed length records are quicker to process by computer as start and end locations are known.
E.g. - Gender, Date Of Birth.

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

Serial File

A

Data is stored in the order in which it was entered. No order to the data is maintained. Useful for storing transactional and initialisation files. To add to a serial file the new record is appended to the end of the file.

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

Sequential Files

A

Data is stored in the order of a key filed. Order is maintained when new records are added. Useful for storing master files. To add to a sequential file, a new file is made by copying the old file until an insertion is required then inserting the new record and copying the rest of the file. The old file is then deleted.

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

Linear search

A

An algorithm that finds a value in a list by checking each item in order until a match is found

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

Binary search

A

An algorithm that works by repeatedly dividing in half the portion of the list that could contain the item, until you’ve narrowed down the possible locations to just one.

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

Direct access

A

storing data in a file where any record can be accessed directly, without having to read through the records that come before it

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

Overflow

A

overflow describes a situation where a disk block is full
and a new record requires somewhere to be stored. the new record will be stored in this overflow area.

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

Indexed sequential

A

storing data where records are physically arranged in a sequential order, but an additional index is maintained to allow for quick random access to individual records based on a key value

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