Questions: Segmentation

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

Under a segmentation memory scheme, what two components make up a logical address?

AA page number and a physical frame number
BA segment number and an offset within that segment
CA base address and an effective address
DA virtual page and a dirty bit
Question 2 Multiple Choice

After running many processes, a system using segmentation has 200 MB of free physical memory in total, but that free memory is scattered across small fragments between allocated segments. A process requests a single 150 MB contiguous segment. The allocation fails despite having enough free memory. What explains this?

ASegmentation does not support memory protection, so the allocation cannot be authorized
BEach segment must occupy a contiguous block of physical memory; fragmented free space cannot satisfy a large contiguous request even if the total free memory is sufficient
CThe segment table has a fixed maximum number of entries and is full
DThis situation is impossible — segmentation prevents external fragmentation by design
Question 3 True / False

Segmentation eliminates external fragmentation because the logical address space is divided into separate segments that can be independently placed in physical memory.

TTrue
FFalse
Question 4 True / False

A segmentation fault is generated by the MMU when a program's memory access uses an offset that exceeds the segment's limit field.

TTrue
FFalse
Question 5 Short Answer

How do the base and limit fields in a segment table entry work together to both translate addresses and enforce memory protection, and what happens when an illegal access is attempted?

Think about your answer, then reveal below.