Q1. A file system uses a single-level indexed allocation scheme. One index block is reserved for a file and contains 256 direct data-block addresses. If each data block is 4 KB, and the index block itself is not counted as file data, what is the maximum file size addressable through that one index block?
Explanation
Indexed allocation stores block addresses in an index block; the addressed blocks hold the file data. Here the index block has 256 direct entries and each entry points to one 4 KB data block. The maximum addressable file data is therefore 256 x 4 KB = 1024 KB, which is 1 MB. The index block is metadata and is explicitly excluded from the file-size calculation.
