A program that reads array elements one after another in order benefits from:
ASpectral locality
BSpiral locality
CSpatial locality
DSpecial locality
Answer & Solution
Correct answer: C. Spatial locality
1. A cache miss pulls in a whole block of neighbouring bytes.
2. Reading consecutively means the next value is already there.
3. That advantage is spatial locality.
_Source: OpenStax Introduction to Computer Science, Chapter 5, Computer Systems Design._
Keep practising Computer Hardware
Browse all Computer Hardware questions for CCNA, or explore more Computer Science topics.