The correct answer is: B. indexed file
An indexed file is a file that stores data in a way that allows for quick access to any record in the file. This is done by creating an index, which is a table that maps each record in the file to its location on disk. When a user wants to access a record in an indexed file, the computer first looks up the record’s location in the index and then goes directly to that location on disk to read the record.
A sequential file, on the other hand, stores data in a linear fashion. This means that the records in the file are stored one after the other, in the order in which they were added to the file. To access a record in a sequential file, the computer must start at the beginning of the file and read each record until it reaches the desired record. This can be a slow process, especially if the file is large.
A direct access file is a file that stores data in a way that allows for random access to any record in the file. This is done by storing the location of each record on disk in a table. When a user wants to access a record in a direct access file, the computer first looks up the record’s location in the table and then goes directly to that location on disk to read the record.
A random access file is faster to access than a sequential file, but it is also more complex to create and maintain.
E. None of the above is not the correct answer because an indexed file offers the facility of a random file and the access method of an indexed file.