Cache Memory: GATE CS Previous Year Questions

Cache Memory · Computer Organization and Architecture

68 questions · asked in 25 of 27 years (2000–2026)

MCQ 44 · MSQ 4 · NAT 201-mark 30 · 2-mark 38

2000Questions per year2026

Questions 1–5 of 68

Q1GATE 2026 (Session 1)2 marksMCQ−0.67 if wrong
The size of the physical address space of a processor is 2322^{32} bytes. The capacity of a cache memory unit is 2232^{23} bytes. The cache block size is 128128 bytes. The cache memory unit can be built as a direct mapped cache or as a KK-way set-associative cache, where K=2LK=2^{L} and L∈{1,2,3}L \in\{1,2,3\}. Let the length of the TAG field be MM bits for the direct mapped cache, and NN bits for the set-associative cache.

Which one of the following options is true?

Q2GATE 2026 (Session 2)2 marksMSQ
Consider a system with a processor and a 44 KB direct mapped cache with block size of 1616 bytes. The system has a 1616 MB physical memory. Four words P,Q,R{P}, {Q}, {R}, and S are accessed by the processor in the same order 1010 times. That is, there are a total of 4040 memory references in the sequence P,Q,R,S,P,Q,R,S,…{P}, {Q}, {R}, {S}, {P}, {Q}, {R}, {S}, \ldots

Assume that the cache memory is initially empty. The physical addresses of the words are given below (11 word =1=1 byte).

P: 0x845B32, Q: 0x845B26, R: 0x845B36, S: 0x846B32\text{P: 0x845B32, Q: 0x845B26, R: 0x845B36, S: 0x846B32}

Which of the following statements is/are true?
Note: 1 K=2101 {~K}=2^{10} and 1M=2201 {M}=2^{20}

One or more options are correct.

Q3GATE 2026 (Session 2)2 marksNAT
Consider a system with 11 MB physical memory and a word length of 11 byte. The system uses a direct mapped cache, with block numbers starting from 00. The word with physical address 0xA2C28\text{0xA2C28} is mapped to the cache block number 17610176_{10}. The maximum possible size of the cache (in KB ) for this configuration is ________. (answer in integer)
Note: 1 K=2101 {~K}=2^{10} and 1M=2201 {M}=2^{20}

Q4GATE 2025 (Session 1)2 marksMCQ−0.67 if wrong
Consider a memory system with 1M bytes of main memory and 16K bytes of cache memory. Assume that the processor generates 20-bit memory address, and the cache block size is 16 bytes. If the cache uses direct mapping, how many bits will be required to store all the tag values? [Assume memory is byte addressable, 1K = 2102^{10}, 1M = 2202^{20}.]

Q5GATE 2025 (Session 1)2 marksNAT
A computer has a memory hierarchy consisting of two-level cache (L1 and L2) and a main memory. If the processor needs to access data from memory, it first looks into L1 cache. If the data is not found in L1 cache, it goes to L2 cache. If it fails to get the data from L2 cache, it goes to main memory, where the data is definitely available. Hit rates and access times of various memory units are shown in the figure. The average memory access time in nanoseconds (ns) is _________. (rounded off to two decimal places)
Processor L1 cache Hit rate=95%, Access time = 10 ns L2 cache Hit rate=85%, Access time (including L1 cache miss penalty) = 20 ns Main Memory Access time (including L1 and L2 cache miss penalty) = 200 ns

Keep practising

Topics in Computer Organization and Architecture

All CS topics ›