engineering computer science MCQ #109

If a program has 20% of its instructions as branch instructions and the branch predictor accuracy is 80%, what is the average CPI if the base CPI is 1?

engineering computer science MCQ #109

  1. Question 1

    Q1. If a program has 20% of its instructions as branch instructions and the branch predictor accuracy is 80%, what is the average CPI if the base CPI is 1?

    • A) 1.04
    • B) 1.2
    • C) 1.4
    • D) 1.6

    Answer: 1.4

    Explanation: Branch penalty for misprediction = 2 (assuming 2 cycles penalty). NET computer science MCQs often test this core concept.