CS FundamentalsHardProduct-company MCQ pattern
A system has 32-bit virtual addresses, 4 KB pages and 4-byte page-table entries, and every page table must fit exactly in one page. How should the virtual address be split for a multilevel page table?
- A. Two levels: 10 + 10 + 12
- B. Single level: 20-bit page number + 12-bit offset
- C. Two levels: 8 + 12 + 12
- D. Three levels: 7 + 7 + 6 + 12
Correct answer: A. Two levels: 10 + 10 + 12
Offset = 12 bits (4 KB). One page holds 4096/4 = 1024 = 2¹⁰ entries, so each level resolves 10 bits; the 20-bit page number needs 20/10 = 2 levels: 10 + 10 + 12.
More Operating Systems questions
- A Unix-style inode has 12 direct pointers, 1 single-indirect and 1 double-indirect pointer. The block size is 1 KB and a block pointer is…
- Memory holes, in order, are 150 KB, 450 KB, 250 KB, 350 KB and 500 KB. Requests arrive in order: 240 KB, 410 KB, 130 KB, 380 KB. Which…
- What does this program print? (Assume fork() succeeds; the order of the two lines may vary.) c int x = 5; int main() { if (fork() == 0)…
- A resource-allocation graph contains a cycle. Which conclusion is correct?
- Reference string (times 1 to 14): 3, 5, 3, 1, 4, 4, 2, 1, 1, 6, 6, 6, 2, 5. With working-set window Δ = 4 references, what is the working…
- 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 =…