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?
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?
Answer: 1.4
Explanation: Branch penalty for misprediction = 2 (assuming 2 cycles penalty). NET computer science MCQs often test this core concept.