Outline what is meant by direct access as a method of file access.
- (a)Outline what is meant by direct access as a method of file access.[2]
- (b)(i)Explain how direct access is used to locate a specific record in sequential files and random files. (i) Sequential files[2]
- (b)(ii)Random files[2]
Mark scheme
Marking points from the official mark scheme (May/June 2024). The mark or mark type is shown in brackets.
- [2] MP1 Direct access allows a record to be found in a file without other records being read.
- [2] MP2 Records are found by using the key field of the target record // the location of the record is found using a hashing algorithm.
- [2] MP1 In sequential files, an index of all key fields is kept
- [2] MP2 The index is searched for the address of the file location where the target record is stored.
- [2] MP1 A hashing algorithm is used on the key field of the record
- [2] MP2 ... to calculate the address of the memory location where the target record is expected to be stored.
- [2] MP3 Method to find a record if it is not at the expected location e.g. linear probing, search overflow area etc.
Write your answer and get it marked
On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.
Sign up free →