December
1998 QUESTION 4 Total Marks: 20 Marks |
Click here to access other
questions
SUGGESTED SOLUTIONS |
4. | (a) List three factors which you would take into account when choosing a type of the organisation. | [3] | ||||||||||||||||||||||||||||||||||||||||||||||
One mark should be awarded for each valid point (up to a maximum of three marks). Examples include the following:
Other sensible answers should also receive credit.
|
||||||||||||||||||||||||||||||||||||||||||||||||
(b) For each of the following types of file organisation list two advantages: | ||||||||||||||||||||||||||||||||||||||||||||||||
(i) Sequential | [2] | |||||||||||||||||||||||||||||||||||||||||||||||
One mark should be awarded for each valid point (up to a maximum of two marks). Examples include the following:
Other sensible answers should also receive credit.
|
||||||||||||||||||||||||||||||||||||||||||||||||
(ii) Indexed sequential | [2] | |||||||||||||||||||||||||||||||||||||||||||||||
One mark should be awarded for each valid point (up to a maximum of two marks). Examples include the following:
Other sensible answers should also receive credit.
|
||||||||||||||||||||||||||||||||||||||||||||||||
(iii) Random | [2] | |||||||||||||||||||||||||||||||||||||||||||||||
One mark should be awarded for each valid point (up to a maximum of two marks). Examples include the following:
Other sensible answers should also receive credit.
|
||||||||||||||||||||||||||||||||||||||||||||||||
(c) For each of the following types of file organisation list one disadvantage: | ||||||||||||||||||||||||||||||||||||||||||||||||
(i) Sequential | [1] | |||||||||||||||||||||||||||||||||||||||||||||||
One mark should be awarded for a valid point. Examples include the following:
Other sensible answers should also receive credit.
|
||||||||||||||||||||||||||||||||||||||||||||||||
(ii) Indexed sequential |
[1] | |||||||||||||||||||||||||||||||||||||||||||||||
One mark should be awarded for a valid point. Examples include the following:
Other sensible answers should also receive credit.
|
||||||||||||||||||||||||||||||||||||||||||||||||
(iii) Random |
[1] | |||||||||||||||||||||||||||||||||||||||||||||||
One mark should be awarded for a valid point. Examples include the following:
Other sensible answers should also receive credit.
|
||||||||||||||||||||||||||||||||||||||||||||||||
(d) Describe how a file checker
detects inconsistency. |
[2] | |||||||||||||||||||||||||||||||||||||||||||||||
The
file checker builds a table, with two counters per block (1 mark). It reads the blocks in
use and free blocks, and updates the counter accordingly (1 mark). Other sensible answers should also receive credit.
|
||||||||||||||||||||||||||||||||||||||||||||||||
(e) Given the following state of a file, list the blocks which are inconsistent and, for each inconsistent block, name the type of inconsistency.
One mark is available for each of the following:
|
[3] | |||||||||||||||||||||||||||||||||||||||||||||||
(f) For each of the errors
mentioned in Part (b), describe how the file checker might rectify the inconsistency. |
[3] | |||||||||||||||||||||||||||||||||||||||||||||||
One mark is available for each of the following:
|