An indexed file offers the facility of a Random file and the access method of a A. Sequential file B. indexed file C. direct access file D. random access file E. None of the above

Sequential file
indexed file
direct access file
random access file E. None of the above

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.

Exit mobile version