Block Metadata Quiz

Test understanding of block header design


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

1. H=24, header byte address=4096, payload capacity=40. What is the first payload byte address?
2. With H=24, what byte distance does block + sizeof(block_header_t) advance for a block_header_t pointer? Select one.

Select one answer.

3. H=24, current header offset=0, capacity=40, arena end=80. How many bytes remain after the block?
4. For that 16-byte suffix, what does block_next_in_memory return? Select one.

Select one answer.

5. A header at 4096 has H=24. Is its payload necessarily 16-byte aligned? Select one.

Select one answer.

6. What precondition makes reading a header magic field meaningful? Select one.

Select one answer.

7. The physical candidate is offset 136, but block->next stores another valid header address. Which does physical walking use? Select one.

Select one answer.

8. block_init reuses dirty storage. Which fields must it initialize? Select one.

Select one answer.

Join Discord