If a process needs 18 KB and the available memory blocks are 10 KB, 20 KB, 25…

2025

If a process needs 18 KB and the available memory blocks are 10 KB, 20 KB, 25 KB, and 30 KB, which block will Best Fit select?

  1. A.

    14 KB

  2. B.

    25 KB

  3. C.

    10 KB

  4. D.

    20 KB

Attempted by 76 students.

Show answer & explanation

Correct answer: D

The Best Fit memory allocation strategy selects the smallest available memory block that can accommodate the process.

Available blocks:

10 KB → Too small
20 KB → Fits
25 KB → Fits
30 KB → Fits

Among the suitable blocks, 20 KB leaves the least unused space:

20 KB − 18 KB = 2 KB unused
25 KB − 18 KB = 7 KB unused
30 KB − 18 KB = 12 KB unused

Therefore, Best Fit selects the 20 KB block.

Explore the full course: Niacl Ao It Specialist