CS FundamentalsHardGATE CS

A machine has 36-bit virtual addresses, 8 KB pages and 4-byte page-table entries. A two-level page table is used in which the inner page tables each occupy exactly one page. How many bits index the outer page table?

  1. A. 11
  2. B. 12
  3. C. 23
  4. D. 25

Correct answer: B. 12

Offset = 13 bits (8 KB). One 8 KB page holds 2048 = 2¹¹ four-byte entries, so the inner index is 11 bits and the outer index is 36 − 13 − 11 = 12. 11 is the inner index, 23 the single-level page number, and 25 forgets to remove the offset.

More Operating Systems questions

Exams that ask this topic