A computer has a main memory with a capacity of 16 MB and a cache with a…

2024

A computer has a main memory with a capacity of 16 MB and a cache with a capacity of 4 KB. If the cache block size is 32 bytes, how many cache blocks can fit in the main memory ?

  1. A.

    432,000 blocks

  2. B.

    524,288 blocks

  3. C.

    325,008 blocks

  4. D.

    None of these

Attempted by 47 students.

Show answer & explanation

Correct answer: B

To find the number of cache blocks in main memory, divide total main memory size by block size. Convert 16 MB to bytes: 16 × 2²⁰ = 16,777,216 bytes. Convert block size to bytes: 32 bytes. Divide memory by block size: 16,777,216 ÷ 32 = 524,288 blocks. Therefore, main memory can hold 524,288 cache blocks.

Explore the full course: Niacl Ao It Specialist