Bird
Raised Fist0

In a paging system, which of the following correctly describes the order of steps to translate a virtual address to a physical address?

easy🧾 Trace Q3 of Q15
Operating Systems - Paging vs Segmentation - Address Translation
In a paging system, which of the following correctly describes the order of steps to translate a virtual address to a physical address?
AExtract page number, access page table to get frame number, add offset to frame base
BAdd offset to page number, access frame table, then calculate physical address
CDirectly use virtual address as physical address without translation
DExtract offset, access frame table, then add page number to frame base
Step-by-Step Solution
Solution:
  1. Step 1: Extract page number

    The virtual address is divided into page number and offset.
  2. Step 2: Access page table

    Use the page number to find the corresponding frame number in the page table.
  3. Step 3: Calculate physical address

    Add the offset to the frame base address to get the physical address.
  4. Final Answer:

    Option A -> Option A
  5. Quick Check:

    Page number first, then frame lookup, then offset addition [OK]
Quick Trick: Page number -> frame lookup -> add offset [OK]
Common Mistakes:
MISTAKES
  • Confusing offset and page number roles
  • Assuming direct mapping without page table
  • Adding offset before frame lookup
Trap Explanation:
PITFALL
  • Options mixing offset and page number order seem plausible but are incorrect.
Interviewer Note:
CONTEXT
  • Tests understanding of basic paging address translation steps.
Master "Paging vs Segmentation - Address Translation" in Operating Systems

2 interactive learning modes - each teaches the same concept differently

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Operating Systems Quizzes