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?
- A. Spatial locality
- B. Temporal locality
- C. Memory interleaving
- 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.
हिंदी में
किसी लूप के प्रत्येक चक्कर में लूप काउंटर को पढ़ा और अद्यतन किया जाता है, और इसलिए वह कैश में बना रहता है। यह प्रोग्रामों के किस गुण का लाभ उठाता है?
- A. स्थानिक स्थानीयता
- B. कालिक स्थानीयता
- C. मेमोरी इंटरलीविंग
- D. राइट-बैक बफ़रिंग
उत्तर: B. कालिक स्थानीयता का अर्थ है कि अभी प्रयोग हुई वस्तु के शीघ्र फिर प्रयोग होने की संभावना होती है, जैसे लूप काउंटर की। स्थानिक स्थानीयता पास-पास के पतों से संबंधित है, जैसे ऐरे के क्रमागत तत्व।
More Computer Awareness questions
- When the CPU reads a word from main memory, which two registers hold the address being accessed and the data that arrives?
- A processor has a 16-bit data bus and moves one word on each bus cycle at 8 MHz. What is the maximum data transfer rate?
- A 4K × 8 memory is to be built from 1K × 4 RAM chips. How many chips are needed, and how many address lines does the full memory require?
- Which pairing of ROM type and erasing method is WRONG?
- A hard disk has 4 platters with both surfaces used, 1000 tracks per surface, 500 sectors per track and 512 bytes per sector. What is its…
- On a multi-platter hard disk, a 'cylinder' is: