CS FundamentalsVery hardCapgemini · Cognizant GenC

A segment table holds (base, limit): segment 0 = (1200, 700), segment 1 = (4000, 300), segment 2 = (3000, 500). Which logical address (segment, offset) translates to physical address 3499 without a trap?

  1. A. (1, 300)
  2. B. (0, 2299)
  3. C. (2, 500)
  4. D. (2, 499)

Correct answer: D. (2, 499)

Segment 2: 3000 + 499 = 3499 and 499 < 500, so it is valid. (0, 2299) also adds up to 3499 but its offset exceeds segment 0's limit of 700, so it traps; (1, 300) maps to 4300 and (2, 500) to 3500.

More Operating Systems questions

Exams that ask this topic