← Quiz: Memory Hierarchy and Cache: all 10 questions
Quiz: Memory Hierarchy and Cache · Question 1 of 10
Looping through an array element by element benefits mainly from:
Looping through an array element by element benefits mainly from:
- A.Temporal locality only
- B.Spatial locality
- C.Conflict misses
- D.Write-back
Answer & explanation
Correct answer: Spatial locality
Neighbouring elements arrive in the same cache block.
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 →