GATE CS 2025, set 2 · Question 39 · Computer Organization and Architecture · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

For a direct-mapped cache, 4 bits are used for the tag field and 12 bits are used to index into a cache block. The size of each cache block is one byte. Assume that there is no other information stored for each cache block.
Which ONE of the following is the CORRECT option for the sizes of the main memory and the cache memory in this system (byte addressable), respectively?

  1. (A) 64 KB and 4 KB
  2. (B) 128 KB and 16 KB
  3. (C) 64 KB and 8 KB
  4. (D) 128 KB and 6 KB
Answer

Answer (A)

Answer from the official GATE CS 2025 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes