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

The size of the physical address space of a processor is 2³² bytes. The capacity of a cache memory unit is 2²³ bytes. The cache block size is 128 bytes. The cache memory unit can be built as a direct mapped cache or as a K-way set-associative cache, where K = 2^L and L ∈ {1, 2, 3}. Let the length of the TAG field be M bits for the direct mapped cache, and N bits for the set-associative cache.
Which one of the following options is true?

  1. (A) N = M + L
  2. (B) N = M - L
  3. (C) N = M + K
  4. (D) N = M - K
Answer

Answer (A)

Answer from the official GATE CS 2026 answer key.

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