GATE | GATE-CS-2014-(Set-2) | Question 65

A FAT (file allocation table) based file system is being used and the total overhead of each entry in the FAT is 4 bytes in size. Given a 100 x 106 bytes disk on which the file system is stored and data block size is 103 bytes, the maximum size of a file that can be stored on this disk in units of 106 bytes is ____________.

(A) 99.55 to 99.65
(B) 100.5 to 101.4
(C) 97.2 to 98.5
(D) 89.1 to 91.2


Answer: (A)

Explanation:

Here block size is 10^3 B.
No. of entries in the FAT = Disk capacity/ Block size 
                          = 10^8/10^3 
                          = 10^5
Total space consumed by FAT = 10^5 *4B 
                            = 0.4*10^6B
Max. size of file that can be stored = 100*10^6-0.4*10^6
                                     = 99.6*10^6B.
So answer 99.6.


Quiz of this Question

My Personal Notes arrow_drop_up