Questions: Contiguous Memory Allocation and Fragmentation

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A system uses variable-partition memory allocation. Currently, free memory consists of three holes: 60 KB, 50 KB, and 40 KB — 150 KB total. A new process requiring 120 KB arrives. What happens?

AThe process is allocated across the 60 KB and 50 KB holes using non-contiguous allocation
BThe process cannot be allocated because no single contiguous hole is large enough — this is external fragmentation
CThe OS performs compaction automatically and then allocates the process
DThe process is allocated to the 60 KB hole with 60 KB of internal fragmentation
Question 2 Multiple Choice

Why is First-Fit often preferred over Best-Fit in practice, despite Best-Fit selecting the smallest hole that fits a process?

AFirst-Fit is faster to implement and requires less memory for bookkeeping
BBest-Fit creates many tiny residual holes that are too small to be useful, producing more total unusable fragmentation
CFirst-Fit always leaves larger free holes available for future large processes
DBest-Fit is incompatible with variable-partition allocation schemes
Question 3 True / False

Fixed-partition memory allocation suffers from internal fragmentation but is immune to external fragmentation.

TTrue
FFalse
Question 4 True / False

Best-Fit allocation consistently produces less total memory fragmentation than First-Fit in practice.

TTrue
FFalse
Question 5 Short Answer

Explain why compaction addresses external fragmentation but is not a complete solution, and what structural change paging makes to eliminate external fragmentation entirely.

Think about your answer, then reveal below.