GATE CS 2026 Set 1 | Question 38

Computer Organization & Architecture › Memory Hierarchy · MCQ · 2 marks · Answer: A

  1. Question 38Computer Organization & Architecturemcq2 marks
    The size of the physical address space of a processor is bytes. The capacity of a cache memory unit is bytes. The cache block size is 128 bytes. The cache memory unit can be built as a direct mapped cache or as a -way set-associative cache, where and . Let the length of the TAG field be bits for the direct mapped cache, and bits for the set-associative cache. Which one of the following options is true?
    • A.
      ✓
    • B.
    • C.
    • D.

    Answer: A

    Solution

    Answer: (A) • Offset: , so 7 bits. • Direct mapped: lines, so a 16-bit index and . • -way: sets, so the index is bits and . Every doubling of associativity moves one bit from the index to the tag.

More GATE PYQ on Memory Hierarchy

All GATE CS Computer Organization & Architecture PYQ →

Attempt GATE CS 2026 Set 1 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →