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 51–55 of 68

Q51GATE 20071 markMCQ−0.33 if wrong
Consider a machine with a byte addressable main memory of 2162^{16} bytes. Assume that a direct mapped data cache consisting of 32 lines of 64 bytes each is used in the system. A 50 x 50 two-dimensional array of bytes is stored in the main memory starting from memory location 1100H. Assume that the data cache is initially empty. The complete array is accessed twice. Assume that the contents of the data cache do not change in between the two accesses.

Which of the following lines of the data cache will be replaced by new blocks in accessing the array for the second time?

Q52GATE 20071 markMCQ−0.33 if wrong
Consider a machine with a byte addressable main memory of 2162^{16} bytes. Assume that a direct mapped data cache consisting of 32 lines of 64 bytes each is used in the system. A 50 x 50 two-dimensional array of bytes is stored in the main memory starting from memory location 1100H. Assume that the data cache is initially empty. The complete array is accessed twice. Assume that the contents of the data cache do not change in between the two accesses.

How many data cache misses will occur in total?

Q53GATE 20071 markMCQ−0.33 if wrong
Consider a 4-way set associative cache consisting of 128 lines with a line size of 64 words. The CPU generates a 20-bit address of a word in main memory. The number of bits in the TAG, LINE and WORD fields are respectively:

Q54GATE 20061 markMCQ−0.33 if wrong
A computer system has a level-1 instruction cache (1-cache), a level-1 data cache (D-cache) and a level-2 cache (L2-cache) with the following specifications:
Capacity Mapping MethodBlock SizeI-Cache4K wordsDirect mapping4 wordsD-Cache4K words2 -way set associative mapping4 wordsL2-Cache64K words4-way set associative mapping16 words\begin{array}{|l|c|c|c|} \hline \text {} & \textbf{Capacity }& \textbf{Mapping Method} & \textbf{Block Size}\\\hline \text{$I$-Cache} & \text{$4K$ words}& \text{Direct mapping} & \text{$4$ words} \\\hline \text{$D$-Cache} & \text{$4K$ words}& \text{$2$ -way set associative mapping} & \text{$4$ words}\\\hline \text{$L2$-Cache} & \text{$64K$ words}& \text{$4$-way set associative mapping} & \text{$16$ words} \\\hline \end{array}
The length of the physical address of a word in the main memory is 30 bits. The capacity of the tag memory in the I-cache, D-cache and L2-cache is, respectively,

Q55GATE 20061 markMCQ−0.33 if wrong
A cache line is 64 bytes. The main memory has latency 32 ns and bandwidth 1 GBytes/s. The time required to fetch the entire cache line from the main memory is:

Keep practising

Topics in Computer Organization and Architecture

All CS topics ›