A memory management system has 64 pages with 512 bytes page size. Physical…

2017

A memory management system has 64 pages with 512 bytes page size. Physical memory consists of 32 page frames. Number of bits required in logical and physical address are respectively :

  1. A.

    14 and 15

  2. B.

    14 and 29

  3. C.

    15 and 14

  4. D.

    16 and 32

Attempted by 216 students.

Show answer & explanation

Correct answer: C

Solution summary: Logical address = 15 bits, Physical address = 14 bits.

  • Logical address calculation:

    • Page size = 512 bytes = 2^9, so offset bits = 9.

    • Number of pages = 64 = 2^6, so page-number bits = 6.

    • Total logical address bits = page-number bits + offset bits = 6 + 9 = 15.

  • Physical address calculation:

    • Number of physical frames = 32 = 2^5, so frame-number bits = 5.

    • Offset bits are the same (9), so physical address bits = frame-number bits + offset bits = 5 + 9 = 14.

Final answer: logical address requires 15 bits; physical address requires 14 bits.

Common mistake: confusing counts (like 32 frames or 64 pages) with bit widths; always convert counts to powers of two to find the number of bits.

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

Explore the full course: Mppsc Assistant Professor