Question
A computer system supports a logical address space of bytes. It uses two-level hierarchical paging with a page size of 4096 bytes. A logical address is divided into a -bit index to the outer page table, an offset within the page of the inner page table, and an offset within the desired page. Each entry of the inner page table uses eight bytes. All the pages in the system have the same size.
The value of is ___________ . (Answer in integer)
Official answer and solution
- Official answer
- 11
- From
- Official GATE 2025 answer key
Solution
Subtract the page offset bits () and the inner page table index bits () from the 32-bit logical address.
- Total logical address bits: .
- Page offset bits: Since page size , the page offset requires .
- Inner page table offset bits: Each inner page table page has size and each entry uses , so one page of the inner page table holds entries, requiring .
- Outer page table index bits ():
11
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2025 Computer Science and Information Technology - Session 2 (CS2)
- Question
- 58 of 65
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.