🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: Pipelining: questions with answers

10 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. How many cycles does a 5-stage pipeline take for 100 instructions (no stalls)?
  2. Q2. Stage delays are 150, 120, 160, 140, 130 ps with 10 ps latch delay. What is the clock cycle?
  3. Q3. Using a separate instruction cache and data cache fixes which hazard?
  4. Q4. What does forwarding (bypassing) do?
  5. Q5. In the CPI demo, what was the CPI with a 90% accurate predictor (20% branches, 2-cycle penalty)?
  6. Q6. Does pipelining reduce the time taken by one single instruction from start to finish?
  7. Q7. What type of data hazard occurs when an instruction reads a register before an earlier instruction has written it?
  8. Q8. A load is followed immediately by an instruction that uses the loaded value. With forwarding, how many stall cycles remain in the 5-stage p…
  9. Q9. What does this print? (code)
  10. Q10. Which technique guesses the outcome of a branch, fetches along the guess, and flushes the pipeline if the guess was wrong?