A direct-mapped cache has a total size of 1 KB with a block size of 16 bytes.…

2025

A direct-mapped cache has a total size of 1 KB with a block size of 16 bytes. The number of cache lines is:

  1. A.

    32

  2. B.

    64

  3. C.

    128

  4. D.

    256

Attempted by 53 students.

Show answer & explanation

Correct answer: B

The number of cache lines is total cache size divided by block size: 1 KB / 16 bytes = 1024 / 16 = 64.

Explore the full course: Niacl Ao It Specialist