In the index allocation scheme of blocks to a file, the maximum possible size…

2002

In the index allocation scheme of blocks to a file, the maximum possible size of the file depends on

  1. A.

    the size of the blocks, and the size of the address of the blocks.

  2. B.

    the number of blocks used for the index, and the size of the blocks.

  3. C.

    the size of the blocks, the number of blocks used for the index, and the size of the address of the blocks.

  4. D.

    None of the above

Attempted by 35 students.

Show answer & explanation

Correct answer: C

In indexed allocation, index blocks store addresses of the data blocks of a file. The maximum file size depends on how many index blocks are used, how many addresses fit in each index block, and the data block size. The number of addresses per index block depends on block size and address size. Hence all three factors matter.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Gate Guidance By Sanchit Sir