CS FundamentalsEasyGATE CS (PYQ pattern)

A 200 KB heap is managed with a first-fit free list; adjacent free blocks are merged when memory is freed. Operations in order: alloc A=30, B=20, C=50, D=10, free B, free C, alloc E=35, free A, alloc F=15 (sizes in KB). What is the size of the largest free block afterwards?

  1. A. 70 KB
  2. B. 110 KB
  3. C. 45 KB
  4. D. 90 KB

Correct answer: D. 90 KB

Tracking the free list with merging, the final free blocks are [(15, 15), (65, 35), (110, 90)]; the largest is 90 KB.

More Operating Systems questions

Exams that ask this topic