← 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?
- A.Set 5
- B.Set 1
- C.Set 9
- 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 →