← Quiz: Pipelining: all 10 questions
Quiz: Pipelining · Question 9 of 10
What does this print? (code)
What does this print?
def speedup(k, n):
return n * k / (k + n - 1)
print(round(speedup(4, 13), 2))
- A.4.0
- B.3.0
- C.3.25
- D.13.0
Answer & explanation
Correct answer: 3.25
13 × 4 / (4 + 13 − 1) = 52 / 16 = 3.25.
Can you get the rest right without peeking?
Take the timed Quiz: Pipelining quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →