Computer AwarenessVery hardIBPS SO IT Officer

A 64 KB direct-mapped cache uses 16-byte blocks, and the processor issues 32-bit byte addresses. How is each address split?

  1. A. Tag 12, index 16, offset 4
  2. B. Tag 18, index 10, offset 4
  3. C. Tag 16, index 12, offset 4
  4. D. Tag 16, index 14, offset 2

Correct answer: C. Tag 16, index 12, offset 4

16-byte blocks need a 4-bit offset; 64 KB ÷ 16 B = 4096 lines need a 12-bit index; the tag is the remaining 32 − 12 − 4 = 16 bits.

हिंदी में

एक 64 KB डायरेक्ट-मैप्ड कैश 16-बाइट ब्लॉक प्रयोग करता है, और प्रोसेसर 32-बिट बाइट पते जारी करता है। प्रत्येक पता कैसे विभाजित होता है?

  1. A. टैग 12, इंडेक्स 16, ऑफ़सेट 4
  2. B. टैग 18, इंडेक्स 10, ऑफ़सेट 4
  3. C. टैग 16, इंडेक्स 12, ऑफ़सेट 4
  4. D. टैग 16, इंडेक्स 14, ऑफ़सेट 2

उत्तर: C. 16-बाइट ब्लॉक को 4-बिट ऑफ़सेट चाहिए; 64 KB ÷ 16 B = 4096 लाइनों को 12-बिट इंडेक्स चाहिए; टैग शेष 32 − 12 − 4 = 16 बिट है।

More Computer Awareness questions

Exams that ask this topic