Skip to main content

GATE CSE 2017Operating System › I/O, Disk Scheduling & File SystemsVerified

GATE CSE 2017 PYQ: In a file allocation system, which of the following allocation scheme(s) can be used if no external…

In a file allocation system, which of the following allocation scheme(s) can be used if no external fragmentation is allowed?

  1. Contiguous
  2. Linked
  3. Indexed
  1. A
    1 and 3 only
  2. B
    2 only
  3. C
    3 only
  4. D
    2 and 3 only
    Correct answer

Answer

(D) 2 2 2 and 3 3 3 only

Approach

Evaluate each file allocation scheme against the requirement that no external fragmentation is allowed. Contiguous allocation requires a single continuous extent of disk blocks, so as files are created and deleted, free space can become split into scattered holes. Linked and indexed allocation both permit a file's blocks to be scattered across the disk, so they do not create external fragmentation.

Linked and indexed allocation permit a file's blocks to be scattered across disk, so they do not leave external fragmentation. Contiguous allocation requires consecutive blocks and therefore can suffer from external fragmentation. Thus the correct choice is D: 2 and 3 only.

Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.