December
1998 QUESTION 4 Total Marks: 20 Marks |
Click here to access other
questions
Click to access |
4. | (a) List three factors
which you would take into account when choosing a type of file organisation.
|
[3] | ||||||||||||||||||||||||||||||||||||||||||||||
(b) For each of the following types of file organisation list two advantages: | ||||||||||||||||||||||||||||||||||||||||||||||||
(i) Sequential | [2] | |||||||||||||||||||||||||||||||||||||||||||||||
(ii) Indexed sequential | [2] | |||||||||||||||||||||||||||||||||||||||||||||||
(iii) Random
|
[2] | |||||||||||||||||||||||||||||||||||||||||||||||
(c) For each of the following types of file organisation list one disadvantage: | ||||||||||||||||||||||||||||||||||||||||||||||||
(i) Sequential | [1] | |||||||||||||||||||||||||||||||||||||||||||||||
(ii) Indexed sequential | [1] | |||||||||||||||||||||||||||||||||||||||||||||||
(iii) Random
|
[1] | |||||||||||||||||||||||||||||||||||||||||||||||
(d) Describe how a file checker
detects inconsistency.
|
[2] | |||||||||||||||||||||||||||||||||||||||||||||||
(e) Given the following state of a file, list the blocks which are inconsistent and, for each inconsistent block, name the type of inconsistency.
|
[3] | |||||||||||||||||||||||||||||||||||||||||||||||
(f) For each of the errors mentioned in Part (b), describe how the file checker might rectify the inconsistency. | [3] |