Skip to content

GATE CS Memory Hierarchy: Cache, Main Memory and Secondary Storage questions

Practise Memory Hierarchy: Cache, Main Memory and Secondary Storage questions for GATE CS. Explore official PYQs and original topic-wise quizzes, check answers and view available solutions. Free, no sign-in.

Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.

20 on this page
Official PYQ2026Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 2 marks
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 …
Official PYQ2026Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMSQ · 2 marks
Consider a system that has a cache memory unit and a memory management unit (MMU). The address input to the cache memory is a physical address. The MMU has a translation lookaside buffer (TLB). Assume that when a page is evicted from the main memory, the corresponding blocks in the cache are marked as invalid. For a given memory reference, which of the …
Official PYQ2026Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 2 marks
Consider a hard disk with a rotational speed of 1500015000 rpm. The time to move the read/write head from a track to its adjacent track is 11 millisecond. Initially, the head is on track 00. The number of sectors per track is 400400. The sector size is 10241024 bytes. It is necessary to transfer data from 1010 randomly located sectors in each of the …
Official PYQ2026Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMSQ · 2 marks
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\mathrm{P}, \mathrm{Q}, \mathrm{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 …
Official PYQ2026Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 2 marks
To keep track of free blocks in a file system, one of the two approaches is generally used - using bitmaps (bit vectors) or using linked lists. Consider that the linked list approach is used to keep track of free blocks in a file system. Assume that the disk size is 1616 GB , block size is 22 KB , and block numbers used are 3232-bit long. A single …
Official PYQ2026Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 2 marks
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 1761017610. The maximum possible size of the cache (in KB ) for this configuration is _______\_\_\_\_\_\_\_. (answer …
Official PYQ2025Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 2 marks
Consider a memory system with 1M1 \mathrm{M} bytes of main memory and 16 K16 \mathrm{~K} bytes of cache memory. Assume that the processor generates 2020-bit memory address, and the cache block size is 1616 bytes. If the cache uses direct mapping, how many bits will be required to store all the tag⁡\operatorname{tag} values? [Assume memory is byte …
Official PYQ2025Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 2 marks
A computer has a memory hierarchy consisting of two-level cache (L1\text{(L1} and L2)\text{L2)} and a main memory. If the processor needs to access data from memory, it first looks into L1\text{L1} cache. If the data is not found in L1\text{L1} cache, it goes to L2\text{L2} cache. If it fails to get the data from L2\text{L2} cache, it goes to main …
Official PYQ2025Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 2 marks
Given a computing system with two levels of cache (L1 and L2) and a main memory. The first level (L1) cache access time is 11 nanosecond (ns) and the "hit rate" for L1 cache is 90%90 \% while the processor is accessing the data from L1 cache. Whereas, for the second level (L2) cache, the "hit rate" is 80%80 \% and the "miss penalty" for transferring …
Official PYQ2025Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 2 marks
​​​​For a direct-mapped cache, 44 bits are used for the tag field and 1212 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 …
Official PYQ2024Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMSQ · 2 marks
​​​​Consider two set-associative cache memory architectures: WBC\text{WBC}, which uses the write back policy, and WTC\text{WTC}, which uses the write through policy. Both of them use the LRU\text{LRU} (Least Recently Used) block replacement policy. The cache memory is connected to the main memory. Which of the following statements is/are TRUE?
Official PYQ2024Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 2 marks
A given program has 25%25 \% load/store instructions. Suppose the ideal CPI\text{CPI} (cycles per instruction) without any memory stalls is 22. The program exhibits 2%2 \% miss rate on instruction cache and 8%8 \% miss rate on data cache. The miss penalty is 100100 cycles. The speedup (rounded off to two decimal places) achieved with a perfect …
Official PYQ2024Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 2 marks
The baseline execution time of a program on a 2GHz2 \mathrm{GHz} single core machine is 100100 nanoseconds ( ns)n s). The code corresponding to 90%90 \% of the execution time can be fully parallelized. The overhead for using an additional core is 10 ns10 ~ns when running on a multicore system. Assume that all cores in the multicore system run their share …
Official PYQ2023Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 2 marks
A 44 kilobyte (KB)\text{(KB)} byte-addressable memory is realized using four 1 KB1 \mathrm{~KB} memory blocks. Two input address lines (IA4 and IA3)\text{(IA4 and IA3)} are connected to the chip select (CS)\text{(CS)} port of these memory blocks through a decoder as shown in the figure. The remaining ten input address lines from IA11-IA0\text{IA11-IA0} are connected …
Official PYQ2023Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 2 marks
An 88-way set associative cache of size 64 KB  (1 KB=1024  bytes)64 \mathrm{~KB} \;(1 \mathrm{~KB}=1024\; \text{bytes}) is used in a system with 3232-bit address. The address is sub-divided into TAG, INDEX,\text{TAG, INDEX}, and BLOCK OFFSET.\text{BLOCK OFFSET.} The number of bits in the TAG\text{TAG} is ___________.
Official PYQ2022Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMSQ · 1 mark
Let WB\text{WB} and WT\text{WT} be two set associative cache organizations that use LRU\text{LRU} algorithm for cache block replacement. WB\text{WB} is a write back cache and WT\text{WT} is a write through cache. Which of the following statements is/are FALSE?\text{FALSE}?
Official PYQ2022Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 1 mark
A cache memory that has a hit rate of 0.80.8 has an access latency 10  ns10 \; \text{ns} and miss penalty 100  ns.100 \; \text{ns}. An optimization is done on the cache to reduce the miss rate. However, the optimization results in an increase of cache access latency to 15  ns,15 \; \text{ns}, whereas the miss penalty is not affected. The minimum hit rate (rounded …
Official PYQ2022Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMSQ · 2 marks
Consider a system with 2  KB2 \;\text{KB} direct mapped data cache with a block size of 64  bytes.64 \; \text{bytes}. The system has a physical address space of 64  KB64 \; \text{KB} and a word length of 16  bits.16 \; \text{bits.} During the execution of a program, four data words P, Q, R,\text{P, Q, R,} and S\text{S} are accessed in that order 1010 times …
Official PYQ2021Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 1 mark
Consider a computer system with a byte-addressable primary memory of size 2322^{32} bytes. Assume the computer system has a direct-mapped cache of size 32 KB\text{32 KB} (1 KB\text{1 KB} = 2102^{10} bytes), and each cache block is of size 6464 bytes. The size of the tag field is __________ bits.
Official PYQ2021Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageNAT · 1 mark
Consider a set-associative cache of size 2KB (1KB=210\text{2KB (1KB} =2^{10} bytes)\text{)} with cache block size of 6464 bytes. Assume that the cache is byte-addressable and a 3232 -bit address is used for accessing the cache. If the width of the tag field is 2222 bits, the associativity of the cache is _________