CS FundamentalsHardHCL · Tech Mahindra pattern

Segment table (base, limit): S0 (1400, 600), S1 (6300, 400), S2 (4300, 300), S3 (3200, 1100). What happens for logical addresses (2, 120) and (1, 450)?

  1. A. (2, 120) → 4180; (1, 450) → trap
  2. B. Both cause a trap
  3. C. (2, 120) → 4420; (1, 450) → 6750
  4. D. (2, 120) → 4420; (1, 450) → trap: offset exceeds limit

Correct answer: D. (2, 120) → 4420; (1, 450) → trap: offset exceeds limit

(2, 120): offset 120 < limit 300, physical = 4300 + 120 = 4420. (1, 450): offset 450 ≥ limit 400, so the hardware traps to the OS (addressing error). Adding base without checking the limit gives the tempting 6750.

More Operating Systems questions

Exams that ask this topic