CS FundamentalsModerateGATE CS · Amazon/Microsoft SDE MCQ
Pages are 1 KB and a process's page table maps pages 0, 1, 2, 3 to frames 5, 9, 2, 7. What physical address does logical address 3100 map to?
- A. 5148
- B. 7196
- C. 2076
- D. 3100
Correct answer: B. 7196
3100 = 3 × 1024 + 28, so page 3, offset 28. Page 3 is in frame 7: 7 × 1024 + 28 = 7196.
More Operating Systems questions
- Banker's algorithm, resources (A, B, C). Available = (2, 2, 1). Allocation / Max: P0 (1,1,2)/(5,3,4), P1 (2,0,1)/(3,2,2), P2…
- Disk cylinders 0–199; the head is at 50 and the queue holds 82, 170, 43, 140, 24, 16, 190. What is the total head movement under SSTF?
- Disk cylinders 0–199; the head is at 50 moving toward higher cylinders; the queue holds 82, 170, 43, 140, 24, 16, 190. Counting the return…
- How many times is x printed? (Every fork() succeeds, and each print is an unbuffered write, so nothing is printed twice through copied…
- Which values are printed (in some order)? (Every fork() succeeds, and each print is an unbuffered write, so nothing is printed twice…
- How many numbers are printed in total, and what is their sum? (Every fork() succeeds, and each print is an unbuffered write, so nothing is…