Free List Quiz

Test understanding of free list management


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

1. First fit scans A(20 free), B(96 used), C(56 free), D(40 free) for 36 bytes. What does it return? Select one.

Select one answer.

2. Repeat the same search immediately, with no caller claim. What should happen? Select one.

Select one answer.

3. An exact 32-byte free block is encountered for request 32. Is it eligible? Select one.

Select one answer.

4. Appending D to A→B→C→NULL requires which links? Select one.

Select one answer.

5. A(20 free), B(96 used), C(56 free), D(40 free): what is total_free_space in payload bytes?
6. A(20 free), B(96 used), C(56 free), D(40 free) contain 116 free payload bytes. Can find_free_block(100) succeed? Select one.

Select one answer.

7. Two free nodes are adjacent in the logical list. May they always be coalesced? Select one.

Select one answer.

8. What are get_last_block(), count_free_blocks(), and total_free_space() for an empty list? Select one.

Select one answer.

Join Discord