🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Memory Hierarchy and Cache: all 10 questions

Quiz: Memory Hierarchy and Cache · Question 5 of 10

In the simulator, why did address 64 cause evictions?

In the simulator, why did address 64 cause evictions?

  1. A.The cache was full of dirty lines
  2. B.Blocks 0 and 4 both map to line 0 in a 4-line direct-mapped cache (conflict misses)
  3. C.64 is not a valid address
  4. D.The block size was too large
Answer & explanation

Correct answer: Blocks 0 and 4 both map to line 0 in a 4-line direct-mapped cache (conflict misses)

4 mod 4 = 0 and 0 mod 4 = 0, so they compete for the same line.

Can you get the rest right without peeking?

Take the timed Quiz: Memory Hierarchy and Cache quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →