A system uses 32-bit logical addresses and a page size of 4 KB. How many bits form the page number?
Correct answer B. 20
Explanation
A 4 KB page holds 2^12 bytes, so the low 12 bits of the address give the offset within the page. The remaining 32 - 12 = 20 high-order bits form the page number, allowing 2^20 (about one million) pages. The answer 12 confuses the offset field with the page number, a common mistake when splitting logical addresses.
Answer checked How we write and check questions
Discussion