Optimization Quiz

Test understanding of block optimization


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

1. Payload capacity is 128, header 24, alignment 8, request 41. If split, what is the remainder payload capacity?

Select one answer.

2. Capacity 80, aligned request 40, header 24, minimum remainder payload 16. Is the split valid?

Select one answer.

3. A custom aligned allocator returns an interior address and stores its original allocation immediately before it. How must its paired free work?

Select one answer.

4. Rounding byte address 4101 upward to a 16-byte boundary yields what decimal address?
5. A raw allocation begins at decimal address 2024. With an eight-byte saved pointer and 32-byte alignment, what payload address is returned? Enter a decimal integer.
6. With a toy SIZE_MAX of 255, a request has size 232, alignment 16, and an eight-byte pointer slot. The 255-byte reservation fits. If the base allocator must round it to eight bytes, what must happen? Select one.

Select one answer.

Join Discord