File Access Methods Flashcards

(7 cards)

1
Q

Serial Access

A

How it works: Records are stored one after another in the order they are entered.

Access type: Must read from the beginning to find a record.

Best for: Small datasets where search speed is not critical.

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

Sequential Access

A

How it works: Records are stored in a specific order (e.g., by name or ID).

Access type: Read records in sequence, but faster than serial due to sorting.

Best for: Batch processing, e.g., payroll.

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

Direct Access

A

How it works: Uses a key (like an employee ID) to jump directly to a record.

Access type: Quick access using a lookup method (e.g., hashing).

Best for: Applications needing fast searches.

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

Random Access

A

How it works: Records can be accessed at any position without a specific order.

Access type: Truly flexible – jump to any record.

Best for: Multimedia apps, games, or real-time systems.

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

Archiving

A

Serial or Sequential

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

Payroll File

A

Sequential

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

Real-Time Systems

A

Direct or Random

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