Memory Hierarchy questions — page 1 of 3

Q38

GATE CS 2026 CS-1Memory HierarchyMCQ2 marks−2/3 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 128 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?
Show answer without attempting

Answer: A

Q52

GATE CS 2026 CS-2Memory HierarchyMSQ2 marks
Consider a system with a processor and a 4 KB direct mapped cache with block size of 16 bytes. The system has a 16 MB physical memory. Four words P, Q, R, and S are accessed by the processor in the same order 10 times. That is, there are a total of 40 memory references in the sequence P, Q, R, S, P, Q, R, S,…

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

P: 0x845B32, Q: 0x845B26, R: 0x845B36, S: 0x846B32

Which of the following statements is/are true?

Note: 1K=2101\text{K}=2^{10} and 1M=2201\text{M}=2^{20}
More than one option can be correct.
Show answer without attempting

Answer: A, B

Q56

GATE CS 2026 CS-2Memory HierarchyNAT2 marks
Consider a system with 1 MB physical memory and a word length of 1 byte. The system uses a direct mapped cache, with block numbers starting from 0. The word with physical address 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: 1K=2101\text{K}=2^{10} and 1M=2201\text{M}=2^{20}
Show answer without attempting

Answer: 128

Q36

GATE CS 2025 CS-1Memory HierarchyMCQ2 marks−2/3 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=2101\text{K}=2^{10}, 1M=2201\text{M}=2^{20}.]
Show answer without attempting

Answer: A

Q53

GATE CS 2025 CS-1Memory HierarchyNAT2 marks
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)
Question figure
Show answer without attempting

Answer: 11.83 to 11.87

Q39

GATE CS 2025 CS-2Memory HierarchyMCQ2 marks−2/3 if wrong
For a direct-mapped cache, 4 bits are used for the tag field and 12 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 addressable), respectively?
Show answer without attempting

Answer: A

Q55

GATE CS 2025 CS-2Memory HierarchyNAT2 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 1 nanosecond (ns) and the “hit rate” for L1 cache is 90% while the processor is accessing the data from L1 cache. Whereas, for the second level (L2) cache, the “hit rate” is 80% and the “miss penalty” for transferring data from L2 cache to L1 cache is 10 ns. The “miss penalty” for the data to be transferred from main memory to L2 cache is 100 ns.

Then the average memory access time in this system in nanoseconds is ___________ . (rounded off to one decimal place)
Show answer without attempting

Answer: 4.0

Q53

GATE CS 2024 CS-1Memory HierarchyMSQ2 marks
Consider two set-associative cache memory architectures: WBC, which uses the write back policy, and WTC, which uses the write through policy. Both of them use the LRU (Least Recently Used) block replacement policy. The cache memory is connected to the main memory. Which of the following statements is/are TRUE?
More than one option can be correct.
Show answer without attempting

Answer: B, C

Q54

GATE CS 2024 CS-1Memory HierarchyNAT2 marks
Consider a 512 GB hard disk with 32 storage surfaces. There are 4096 sectors per track and each sector holds 1024 bytes of data. The number of cylinders in the hard disk is _________
Show answer without attempting

Answer: 4096

Q56

GATE CS 2024 CS-1Memory HierarchyNAT2 marks
A given program has 25% load/store instructions. Suppose the ideal CPI (cycles per instruction) without any memory stalls is 2. The program exhibits 2% miss rate on instruction cache and 8% miss rate on data cache. The miss penalty is 100 cycles. The speedup (rounded off to two decimal places) achieved with a perfect cache (i.e., with NO data or instruction cache misses) is _________
Show answer without attempting

Answer: 3.00

Q42

GATE CS 2023 CSMemory HierarchyMCQ2 marks−2/3 if wrong
A 4 kilobyte (KB) byte-addressable memory is realized using four 1 KB memory blocks. Two input address lines (IA4 and IA3) are connected to the chip select (CS) port of these memory blocks through a decoder as shown in the figure. The remaining ten input address lines from IA11–IA0 are connected to the address port of these blocks. The chip select (CS) is active high.

The input memory addresses (IA11–IA0), in decimal, for the starting locations (Addr=0) of each block (indicated as X1, X2, X3, X4 in the figure) are among the options given below. Which one of the following options is CORRECT?
Question figure
Show answer without attempting

Answer: C

Q64

GATE CS 2023 CSMemory HierarchyNAT2 marks
An 8-way set associative cache of size 64 KB (1 KB=1024 bytes1 \text{ KB} = 1024 \text{ bytes}) is used in a system with 32-bit address. The address is sub-divided into TAG, INDEX, and BLOCK OFFSET.

The number of bits in the TAG is ____________.
Show answer without attempting

Answer: 19

Q24

GATE CS 2022 CSMemory HierarchyMSQ1 mark
Let WB and WT be two set associative cache organizations that use LRU algorithm for cache block replacement. WB is a write back cache and WT is a write through cache. Which of the following statements is/are FALSE?
More than one option can be correct.
Show answer without attempting

Answer: A, B, D

Q33

GATE CS 2022 CSMemory HierarchyNAT1 mark
A cache memory that has a hit rate of 0.8 has an access latency 10 ns and miss penalty 100 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, whereas the miss penalty is not affected. The minimum hit rate (rounded off to two decimal places) needed after the optimization such that it should not increase the average memory access time is _____________.
Show answer without attempting

Answer: 0.85

Q40

GATE CS 2022 CSMemory HierarchyMCQ2 marks−2/3 if wrong
Consider a digital display system (DDS) shown in the figure that displays the contents of register XX. A 16-bit code word is used to load a word in XX, either from SS or from RR. SS is a 1024-word memory segment and RR is a 32-word register file. Based on the value of mode bit MM, TT selects an input word to load in XX. PP and QQ interface with the corresponding bits in the code word to choose the addressed word.

Which one of the following represents the functionality of PP, QQ, and TT?
Question figure
Show answer without attempting

Answer: C

Q54

GATE CS 2022 CSMemory HierarchyMSQ2 marks
Consider a system with 2 KB direct mapped data cache with a block size of 64 bytes. The system has a physical address space of 64 KB and a word length of 16 bits. During the execution of a program, four data words P, Q, R, and S are accessed in that order 10 times (i.e., PQRSPQRS...). Hence, there are 40 accesses to data cache altogether. Assume that the data cache is initially empty and no other data words are accessed by the program. The addresses of the first bytes of P, Q, R, and S are 0xA248, 0xC28A, 0xCA8A, and 0xA262, respectively. For the execution of the above program, which of the following statements is/are TRUE with respect to the data cache?
More than one option can be correct.
Show answer without attempting

Answer: A, B, D

Q22

GATE CS 2021 CS-1Memory HierarchyNAT1 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 (1 KB = 2102^{10} bytes), and each cache block is of size 64 bytes.
The size of the tag field is ______ bits.
Show answer without attempting

Answer: 17

Q19

GATE CS 2021 CS-2Memory HierarchyNAT1 mark
Consider a set-associative cache of size 2KB (1KB=2101\text{KB} = 2^{10} bytes) with cache block size of 64 bytes. Assume that the cache is byte-addressable and a 32-bit address is used for accessing the cache. If the width of the tag field is 22 bits, the associativity of the cache is ____________.
Show answer without attempting

Answer: 2

Q27

GATE CS 2021 CS-2Memory HierarchyMCQ2 marks−2/3 if wrong
Assume a two-level inclusive cache hierarchy, L1 and L2, where L2 is the larger of the two. Consider the following statements.

S1S_1: Read misses in a write through L1 cache do not result in writebacks of dirty lines to the L2.
S2S_2: Write allocate policy must be used in conjunction with write through caches and no-write allocate policy is used with writeback caches.

Which of the following statements is correct?
Show answer without attempting

Answer: A

Q20

GATE CS 2020 CSMemory HierarchyNAT1 mark
If there are mm input lines and nn output lines for a decoder that is used to uniquely address a byte addressable 1 KB RAM, then the minimum value of m+nm + n is __________.
Show answer without attempting

Answer: 1034

0/200 correct0 marks

Related topics in Computer Organization and Architecture