🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: COA Numericals: all 10 questions

Quiz: COA Numericals · Question 7 of 10

In a 4-way set-associative cache with 16 lines, which set does main-memory block 37 go to?

In a 4-way set-associative cache with 16 lines, which set does main-memory block 37 go to?

  1. A.Set 5
  2. B.Set 1
  3. C.Set 9
  4. D.Set 3
Answer & explanation

Correct answer: Set 1

16 lines ÷ 4 ways = 4 sets, and 37 mod 4 = 1.

Can you get the rest right without peeking?

Take the timed Quiz: COA Numericals quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →