← 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?
- A.The cache was full of dirty lines
- B.Blocks 0 and 4 both map to line 0 in a 4-line direct-mapped cache (conflict misses)
- C.64 is not a valid address
- 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 →