CS FundamentalsHardGATE CS (PYQ pattern)

A system uses segmentation with paging (1024-byte pages). Segment table: seg 0: limit 3000, page frames [7, 2, 9]; seg 1: limit 1500, frames [4, 11]; seg 2: limit 2500, frames [5, 6, 13]. A logical address (segment, offset) is valid if offset < limit. For the accesses (0,2500), (1,1400), (2,2048), (1,1600), (0,100), what is the sum of the physical addresses of the valid ones?

  1. A. 42912
  2. B. 39840
  3. C. 41888
  4. D. 51104

Correct answer: C. 41888

Valid accesses and addresses: [((0, 2500), 9668), ((1, 1400), 11640), ((2, 2048), 13312), ((0, 100), 7268)]. (1,1600) exceeds limit 1500, so it traps; (1,1400) lies in page 1 (frame 11).

More Operating Systems questions

Exams that ask this topic