Capstone Quiz

Test complete allocator understanding


Get every question correct to pass this checkpoint. You can review feedback, revise your answers, and submit again.

1. Two physically adjacent free blocks have payload capacities 40 and 88 with a 24-byte header. What is the merged payload capacity?

Select one answer.

2. A free list links blocks A and C, but a live block B lies physically between them. May A and C be coalesced?

Select one answer.

3. The capstone calloc reuses a dirty 64-byte block for 3 elements of 8 bytes. What must it do?

Select one answer.

4. Three adjacent free blocks each have payload capacity 16 and headers of 24 bytes. What payload capacity results after merging all three?
Join Discord