GateAI
Memory Management and Virtual Memory

GATE CSE 2024 Set 1 · Q62

NAT2 marksEasy

Time

Consider a memory management system that uses a page size of 2 KB. Assume that both the physical and virtual addresses start from 0. Assume that the pages 0, 1, 2, and 3 are stored in the page frames 1, 3, 2, and 0, respectively. The physical address (in decimal format) corresponding to the virtual address 2500 (in decimal format) is ________

Your answerNumerical answer

Enter a value to check

Solution

Step-by-step verified solution

Official answer: 6596

Memory Management and Virtual Memory
  1. Determine the page size:

    Page size=2 KB=2048 bytes\text{Page size} = 2\text{ KB} = 2048\text{ bytes}
  2. Break down the virtual address 25002500:

    • Virtual Page Number (VPN) = ⌊2500/2048⌋=1\lfloor 2500 / 2048 \rfloor = 1

    • Page Offset = 2500 mod 2048=2500−2048=4522500 \bmod 2048 = 2500 - 2048 = 452

  3. Map the virtual page to its physical frame: According to the page mapping:

    • Page 0 →\to Frame 1

    • Page 1 →\to Frame 3

    • Page 2 →\to Frame 2

    • Page 3 →\to Frame 0

    Therefore, Page 1 is mapped to Frame 3.

  4. Calculate the physical address:

    Physical Address=(Frame Number×Page Size)+Offset\text{Physical Address} = (\text{Frame Number} \times \text{Page Size}) + \text{Offset}
    Physical Address=(3×2048)+452=6144+452=6596\text{Physical Address} = (3 \times 2048) + 452 = 6144 + 452 = 6596

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Memory Management and Virtual Memory previous year question is Q62 of the GATE CSE 2024 Set 1 paper. Find more GATE CSE PYQs on Memory Management and Virtual Memory in Operating Systems, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Memory Management and Virtual Memory PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Memory Management and Virtual Memory in GATE CSE

Memory Management and Virtual Memory has 32 GATE CSE PYQs across 22 papers from 2011 to 2026. 15 of them are 2-mark NAT questions like this one, and it is the only one in GATE CSE 2024 Set 1.

How GATE tests Memory Management and Virtual Memory

More from GATE CSE 2024 Set 1

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2024 Set 1 · Q62 · NAT

Consider a memory management system that uses a page size of 2 KB. Assume that both the physical and virtual addresses start from 0. Assume that the pages 0, 1, 2, and 3 are stored in the page frames 1, 3, 2, and 0, respectively. The physical address (in decimal format) corresponding to the virtual address 2500 (in decimal format) is …

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.