GATE / CS ARCHIVE

GATE CSE 2017 SET 2 / QUESTION 8

GATE CSE 2017 Set 2 Q8

Operating Systems · File Systems · Full GATE CSE 2017 Set 2 paper

GATE 2017 Set 2, Q8 1 mark · MCQ
Report issue

File Systems

Question 8, GATE 2017: Which file-allocation schemes avoid external fragmentation? I:contiguous. II:linked. III:indexed. A:I and III. B:II only. C:III only. D:II and III.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

1. External fragmentation means sufficient total free space may exist but be split into separate regions, so a request needing one contiguous run cannot fit. Contiguous file allocation has this problem.

2. Linked allocation connects a file's blocks by pointers, so successive blocks can occupy arbitrary free block positions. Indexed allocation instead keeps their addresses in an index structure and likewise allows scattered blocks.

3. Both II and III avoid requiring one contiguous extent, giving D. This does not assert that every allocated block is completely used: an incompletely filled last block can still cause internal fragmentation, which is a different phenomenon.

Original paper, page 4 · Answer key