Using the page table shown below, translate the physical address 25 to virtual…

2014

Using the page table shown below, translate the physical address 25 to virtual address. The address length is 16 bits and page size is 2048 words while the size of the physical memory is four frames.

Page   Present(1-In 0-out)   Frame
0      1                     3
1      1                     2
2      1                     0
3      0                     -
  1. A.

    25

  2. B.

    6169

  3. C.

    2073

  4. D.

    4121

Attempted by 63 students.

Show answer & explanation

Correct answer: D

First, calculate the physical frame and offset from address 25 with page size 2048. Frame is 0, Offset is 25. Look up Frame 0 in the page table to find it maps from Virtual Page 2. Calculate virtual address: (Page 2 * 2048) + Offset 25 = 4121.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Isro