CS FundamentalsHardProduct-company MCQ pattern

In a segmentation scheme with segment table entries (base, limit), a process issues a logical address (segment 2, offset 5000). The segment table shows segment 2 has base 10000 and limit 4096. What happens?

  1. A. Physical address 15000 is generated successfully
  2. B. A segmentation fault/trap occurs, because the offset 5000 exceeds the segment's limit of 4096
  3. C. Physical address 10000 + 4096 is generated, clipping the offset to the limit
  4. D. The offset wraps around modulo the limit, giving physical address 10904

Correct answer: B. A segmentation fault/trap occurs, because the offset 5000 exceeds the segment's limit of 4096

Segmentation hardware checks offset < limit before adding to base. Here offset 5000 > limit 4096, so the memory-management unit raises a protection fault instead of generating any physical address; it does not clip or wrap silently.

More Operating Systems questions

Exams that ask this topic