GateAI
Cache Memory and Hierarchy

GATE CSE 2022 · Q24

MSQ1 markMedium

Time

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?

Select all that applyOne or more correct

Pick every correct option

Solution

Step-by-step verified solution

Official answer: A) Each cache block in WB and WT has a dirty bit.; B) Every write hit in WB leads to a data transfer from cache to main memory.; D) A read miss in WB will never lead to eviction of a dirty block from WB.

Cache Memory and Hierarchy

We are asked to identify which statements are FALSE:

  • (A) FALSE: In a write-through (WT) cache, writes are immediately propagated to main memory, so cache blocks in WT are always consistent with memory and do not require a dirty (modified) bit. A dirty bit is only needed in a write-back (WB) cache.

  • (B) FALSE: In a write-back (WB) cache, a write hit modifies only the cache block and sets the dirty bit. It does not initiate a transfer to main memory at the time of the hit; writing to main memory is deferred until eviction.

  • (C) TRUE: In WT cache, since main memory is already kept up-to-date on every write, evicting a block simply invalidates/replaces it without any data transfer to main memory.

  • (D) FALSE: When a read miss occurs in a WB cache, a new block must be brought from main memory into a set. If all blocks in the target set are valid and the block selected by LRU replacement happens to be dirty, that dirty block must be written back (evicted) to main memory. Thus, a read miss *can* lead to the eviction of a dirty block.

Hence, the FALSE statements are A, B, and D.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Cache Memory and Hierarchy previous year question is Q24 of the GATE CSE 2022 paper. Find more GATE CSE PYQs on Cache Memory and Hierarchy in Computer Organization and Architecture, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Cache Memory and Hierarchy PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Cache Memory and Hierarchy in GATE CSE

Cache Memory and Hierarchy has 47 GATE CSE PYQs across 23 papers from 2011 to 2026. This is the only 1-mark MSQ among them, and GATE CSE 2022 has 4.

How GATE tests Cache Memory and Hierarchy

More from GATE CSE 2022

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2022 · Q24 · MSQ

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?

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.