CS FundamentalsModerateTCS NQT · Infosys pattern
Page size is 1 KB. The page table maps page 0 → frame 3, page 1 → frame 7, page 2 → frame 5, page 3 → frame 2. What physical address corresponds to logical address 2500?
- A. 2500
- B. 5120
- C. 5572
- D. 7620
Correct answer: C. 5572
Page = ⌊2500/1024⌋ = 2, offset = 2500 − 2048 = 452. Page 2 → frame 5, so physical = 5 × 1024 + 452 = 5572. 5120 forgets the offset.
More Operating Systems questions
- Which statement about threads of the same process is FALSE?
- Processes: A (arrival 0, burst 5), B (arrival 1, burst 3), C (arrival 2, burst 8), D (arrival 3, burst 6). Round Robin, quantum 4. A…
- Processes: P1 (arrival 0, burst 7), P2 (arrival 2, burst 4), P3 (arrival 4, burst 1), P4 (arrival 5, burst 4) (ms). Round Robin with…
- Processes: A (arrival 0, burst 5), B (arrival 1, burst 3), C (arrival 2, burst 8), D (arrival 3, burst 6). Priorities A = 3, B = 1, C = 4…
- Reference string: 3, 1, 4, 3, 2, 1, 5, 3, 4, 1, 2, 5, 4, 3 frames, initially empty. Which statement is correct?
- Reference string: 3, 1, 4, 3, 2, 1, 5, 3, 4, 1, 2, 5, 4. With 3 frames, initially empty, how many page faults does the Optimal (OPT)…