GATE Computer ScienceVery hardGATE CS · ISRO

A virtually indexed cache is 64 KB, 4-way set-associative with 32-byte blocks, and pages are 4 KB. How many distinct page colours (values of the cache-index bits that lie above the page offset) can occur?

  1. A. 8
  2. B. 1
  3. C. 4
  4. D. 16

Correct answer: C. 4

Sets = 64K/(4×32) = 512, so index + offset use 14 bits; with a 12-bit page offset, 2 bits come from the page number, giving 2^2 = 4 colours.

More Computer Organization and Architecture questions

Exams that ask this topic