Machine-translated by Google. Questions are authored in English.
Top

Discussion

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 × \(10^{6}\) bytes disk on which the file system is stored and data block size is \(10^{3}\) bytes, the maximum size of a file that can be stored on this disk in units of \(10^{6}\) 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

The maximum file size is about 99.6, so the answer is 99.55 to 99.65.

The disk holds \(100 \times 10^{6} / 10^{3} = 10^{5}\) blocks, and the FAT needs one 4-byte entry per block:

\[ \begin{aligned} \text{FAT size} &= 10^{5} \times 4 = 0.4 \times 10^{6} \text{ B} \\ \text{max file} &= 100 \times 10^{6} - 0.4 \times 10^{6} \\ &= 99.6 \times 10^{6} \text{ B} \end{aligned} \]

Everything not taken by the FAT is available to a single file, so the answer is 99.6 in units of \(10^{6}\) bytes. A value above 100 is impossible on a disk of that size, and the lower ranges overstate the FAT's overhead.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.