Computer AwarenessModerateIBPS SO IT Officer · SBI Clerk Mains

A loop counter is read and updated on every pass of a loop, and so it stays in the cache. Which property of programs does this exploit?

  1. A. Spatial locality
  2. B. Temporal locality
  3. C. Memory interleaving
  4. D. Write-back buffering

Correct answer: B. Temporal locality

Temporal locality means an item used now is likely to be used again soon, as a loop counter is. Spatial locality concerns neighbouring addresses, such as successive array elements.

हिंदी में

किसी लूप के प्रत्येक चक्कर में लूप काउंटर को पढ़ा और अद्यतन किया जाता है, और इसलिए वह कैश में बना रहता है। यह प्रोग्रामों के किस गुण का लाभ उठाता है?

  1. A. स्थानिक स्थानीयता
  2. B. कालिक स्थानीयता
  3. C. मेमोरी इंटरलीविंग
  4. D. राइट-बैक बफ़रिंग

उत्तर: B. कालिक स्थानीयता का अर्थ है कि अभी प्रयोग हुई वस्तु के शीघ्र फिर प्रयोग होने की संभावना होती है, जैसे लूप काउंटर की। स्थानिक स्थानीयता पास-पास के पतों से संबंधित है, जैसे ऐरे के क्रमागत तत्व।

More Computer Awareness questions

Exams that ask this topic