Question 57Asked in UGC NET Computer Science, August 2016 (Paper II & III, Selected Questions)

Consider a file currently consisting of 50 blocks. Assume that the file control block and the index block is already in memory. If a block is added at the…

Consider a file currently consisting of 50 blocks. Assume that the file control block and the index block is already in memory. If a block is added at the end (and the block information to be added is stored in memory), then how many disk I/O operations are required for indexed (single-level) allocation strategy?
  1. A1
  2. B101
  3. C27
  4. D0
Show answerHide answer

Correct answer: (A) 1

Explanation

The file control block and the index block are already in memory, so for indexed allocation only the new block has to be written to disk: 1 disk I/O operation. (Contiguous and linked allocation would need 1 and 3 operations respectively in this scenario, per the book.)

From UGC NET Computer Science PYQ, August 2016 (Paper II & III, Selected Questions)

This is question 57 of UGC NET Computer Science PYQ, August 2016 (Paper II & III, Selected Questions). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.