CS FundamentalsHardAmazon · Microsoft MCQ pattern
A 64-bit machine uses 48-bit virtual addresses, 4 KB pages and 8-byte page-table entries. Every page table occupies exactly one page. How many levels of paging are needed?
- A. 3
- B. 5
- C. 2
- D. 4
Correct answer: D. 4
Offset = 12 bits, leaving 36 bits of page number. One page holds 4096/8 = 512 = 2⁹ entries, so each level resolves 9 bits: 36/9 = 4 levels (as on x86-64). Three levels would cover only 27 of the 36 bits.
More Operating Systems questions
- A system uses two-level paging and a TLB. TLB access = 10 ns, memory access = 100 ns, TLB hit ratio = 90%. The TLB is searched first, and…
- TLB access = 20 ns, memory access = 100 ns, single-level page table, TLB searched first. What is the minimum TLB hit ratio for the…
- Memory access takes 100 ns and a page fault takes 5 ms to service. For the effective access time to be at most 20% slower than a…
- A machine has 1 GB of physical memory, 4 KB pages, 64-bit virtual addresses and an inverted page table. How many entries does the inverted…
- How many of the following statements are correct? 1. Increasing the degree of multiprogramming always increases CPU utilisation. 2…
- Cylinders 0–199, head at 72 currently moving towards cylinder 0. Requests: 110, 25, 160, 47, 130, 8, 95, 185. Under SCAN, what is the…