🎙 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 1 of 10

Looping through an array element by element benefits mainly from:

Looping through an array element by element benefits mainly from:

  1. A.Temporal locality only
  2. B.Spatial locality
  3. C.Conflict misses
  4. 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 →