Question 103

A direct-mapped cache has 128 lines and a block size of 16 bytes. With 16-bit addresses, how many bits form the tag?

  1. A9
  2. B7
  3. C4
  4. D5
Show answerHide answer

Correct answer: (D) 5

Explanation

Offset = 4 bits, line = 7 bits, tag = 16 − 7 − 4 = 5.

From DSSSB TGT Computer Science Full Mock Test 2

This is question 103 of DSSSB TGT Computer Science Full Mock Test 2. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.