A file requires 5 disk blocks. Under contiguous allocation, the first block is 100 and the file occupies consecutive blocks. What will be the block numbers allocated to the file?

Options

  • A. 100, 101, 102, 103, 104
  • B. 100, 102, 104, 106, 108
  • C. 101, 102, 103, 104, 105
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

A. 100, 101, 102, 103, 104

Detailed Explanation

Explanation: In contiguous allocation, a file occupies consecutive disk blocks. If the first block is 100 and the file requires 5 blocks, the allocated blocks are 100, 101, 102, 103 and 104.