🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Load Testing and Capacity Planning: all 10 questions

Quiz: Load Testing and Capacity Planning · Question 5 of 10

What does this print? (code)

What does this print?

service = 50
for u in (0.5, 0.9):
    print(round(1000 / (service - service * u)))
  1. A.20 100
  2. B.40 200
  3. C.40 100
  4. D.25 45
Answer & explanation

Correct answer: 40 200

1000 / (50 − 25) = 40 ms and 1000 / (50 − 45) = 200 ms: five times slower at 90% busy.

Can you get the rest right without peeking?

Take the timed Quiz: Load Testing and Capacity Planning quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →