Computer AwarenessVery hardIBPS SO IT Officer
A 4-way set-associative cache has 256 lines in total. How many sets does it have, and how many address bits select the set?
- A. 256 sets, 8 index bits
- B. 64 sets, 6 index bits
- C. 4 sets, 2 index bits
- D. 64 sets, 8 index bits
Correct answer: B. 64 sets, 6 index bits
Each set holds 4 lines, so 256 ÷ 4 = 64 sets, chosen by log₂ 64 = 6 index bits. 256 sets would be a direct-mapped cache.
हिंदी में
एक 4-वे सेट-एसोसिएटिव कैश में कुल 256 लाइनें हैं। उसमें कितने सेट हैं, और सेट का चयन कितने एड्रेस बिट करते हैं?
- A. 256 सेट, 8 इंडेक्स बिट
- B. 64 सेट, 6 इंडेक्स बिट
- C. 4 सेट, 2 इंडेक्स बिट
- D. 64 सेट, 8 इंडेक्स बिट
उत्तर: B. प्रत्येक सेट में 4 लाइनें हैं, इसलिए 256 ÷ 4 = 64 सेट, जिनका चयन log₂ 64 = 6 इंडेक्स बिट करते हैं। 256 सेट डायरेक्ट-मैप्ड कैश में होते।
More Computer Awareness questions
- In which pair is the expansion of the abbreviation WRONG?
- Which abbreviation is expanded CORRECTLY?
- How many of these expansions are correct? I. RAM – Random Access Memory II. CD-R – Compact Disc Rewritable III. DPI – Display Pixels per…
- A fintech's developers upload their code, and the cloud provider supplies and manages the servers, operating system, runtime and database…
- Several banks with the same regulatory and security needs share one cloud infrastructure that is closed to the general public. Which…
- Which HTML tag creates a clickable hyperlink to another page?