CS FundamentalsHardGATE CS (PYQ pattern)
Segment table (base, limit in bytes): seg 0 = (1000, 400), seg 1 = (2400, 100), seg 2 = (3000, 250), seg 4 = (500, 60); segment 3 is not defined. Accesses (segment, offset): (0,350), (1,100), (2,249), (3,10), (4,60), (0,400), (2,0). An access is valid only if the segment exists and offset < limit. What is the sum of the physical addresses of the accesses that succeed?
- A. 10099
- B. 8159
- C. 10609
- D. 7599
Correct answer: D. 7599
Valid accesses: [(0, 350), (2, 249), (2, 0)]. Offsets equal to the limit (1,100), (4,60), (0,400) fail, and segment 3 does not exist. The physical addresses are [1350, 3249, 3000] and they sum to 7599.
More Operating Systems questions
- A system uses LRU with 3 frames (initially empty). A dirty page is written back to disk only when it is evicted; a page is dirty if it was…
- LFU replacement with 3 frames (initially empty): the victim is the resident page with the smallest reference count since it was loaded…
- Working-set window Δ = 5 references: WS(t) is the set of distinct pages among the 5 most recent references up to and including time t…
- Semaphores x = 0, y = 0. P1: print a; signal(x); wait(y); print b. P2: wait(x); print c; signal(y); print d. P3: print e. All three start…
- A Unix file system uses 4 KB blocks, 4-byte pointers and inodes with 12 direct pointers, one single-, one double- and one triple-indirect…
- Eight disks can be arranged as RAID 1+0 (4 mirrored pairs, striped together) or as RAID 0+1 (two 4-disk stripe sets, the second mirroring…