Open In App

GATE | GATE-CS-2002 | Question 47

Like Article
Like
Save
Share
Report

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. 


Quiz of this Question
Please comment below if you find anything wrong in the above post


Last Updated : 28 Jun, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads