🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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))
  1. A.4.0
  2. B.3.0
  3. C.3.25
  4. 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 →