GATE CSE 2026 Session 2 Q56: Maximum direct-mapped cache size from an address-to-block mapping
- Computer Organization and Architecture
- 2 marks
- NAT
- No negative marking
Question
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 . The maximum possible size of the cache (in KB) for this configuration is ___________. (answer in integer)
Note: and
Try it: numerical answer: type the value
Show answer and explanation
Answer: 128 (official GATE 2026 final answer key)
Concept used: Cache block number = (address >> offset bits) mod (number of lines); cache size = 2^(offset + index bits).
First step: Write 0xA2C28 in binary and find the offset width for which the bits above it end in 10110000 (= 176), then extend the index over any following 0 bits.
Full step-by-step solution
Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.
Share this question
Source: official GATE 2026 Session 2 CS question paper and final answer key, organised by IIT Guwahati. Question paper · Answer key
More Computer Organization and Architecture PYQs
- 2026 Session 1 · Q14Match addressing modes with high-level data elements
- 2026 Session 1 · Q15Instruction sequence for Z = X + Y on a load-store machine
- 2026 Session 1 · Q16Register dependency that causes a data hazard
- 2026 Session 1 · Q36IEEE 754 single-precision sum of 35C00000 and 34A00000
- 2026 Session 1 · Q38Tag length: direct-mapped vs K-way set-associative cache
- 2026 Session 1 · Q54Impossible TLB / page table / cache event sequences