Using the page table shown below, translate the physical address 25 to virtual address. The address length is 16 bits and the page size is 2048 words while the size of physical memory is four frames.\n[Table: Page 0->3, Page 1->2, Page 2->0, Page 3->-]\n[Wait, question asks Physical 25 to Virtual? Or Logical 25 to Physical? "translate the physical address 25 to virtual address".]\n[Usually we translate Virtual to Physical. If physical is 25, we need to find which frame contains 25. Frame size = 2048.]
- A. 25
- B. 6169
- C. 2073
- D. 4121
Answer: D. 4121
Explanation: Typically question is Virtual to Physical. If Virtual Address is 25? \nPage size 2048. Address 25 is in Page 0 (Offset 25).\nPage 0 maps to Frame 3.\nPhysical Address = Frame $\times$ Size + Offset = $3 \times 2048 + 25 = 6144 + 25 = 6169$.\nOption (b) is 6169. This assumes the question meant "translate virtual address 25".\nLet's assume the text meant "translate the virtual address 25 to physical".\nKey Answer is (d) 4121? \nLet's check reverse. Physical 25. Frame 0. Offset 25. Frame 0 maps to Page 2. Virtual = Page 2 $\times$ 2048 + 25 = 4096 + 25 = 4121.\nYes, question asks Physical to Virtual. \nPhysical 25 is in Frame 0 (0 to 2047). The table shows Page 2 maps to Frame 0. So it belongs to Page 2. \nVirtual Address = Page Index $\times$ Page Size + Offset = $2 \times 2048 + 25 = 4121$.