engineering computer science MCQ #154

A direct-mapped cache has 128 blocks. What is the number of bits required for the index?

engineering computer science MCQ #154

  1. Question 1

    Q1. A direct-mapped cache has 128 blocks. What is the number of bits required for the index?

    • A) 7
    • B) 8
    • C) 6
    • D) 5

    Answer: 7

    Explanation: Number of index bits = log2(number of blocks) = log2(128) = 7.