Skip to content
Related Articles

Related Articles

GATE | GATE-CS-2002 | Question 47

Improve Article
Save Article
  • Last Updated : 28 Jun, 2021
Improve Article
Save Article

In the index allocation scheme of blocks to a file, the maximum possible size of the file depends on :
(A) the size of the blocks, and the size of the ad­dress of the blocks.
(B) the number of blocks used for the index, and the size of the blocks.
(C) the size of the blocks, the number of blocks used for the index, and the size of the address of the blocks.
(D) None of these


Answer: (B)

Explanation:
In the index allocation method, an index block stores the address of all the blocks allocated to a file.

When indexes are created, the maximum number of blocks given to a file depends upon the size of the index which tells how many blocks can be there and size of each block(i.e. same as depending upon the number of blocks for storing the indexes and size of each index block).

 
Thus, option (B) is correct.

 
Please comment below if you find anything wrong in the above post.


Quiz of this Question

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!