🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Flow Control and Sliding Window: all 10 questions

Quiz: Flow Control and Sliding Window · Question 8 of 10

What does this print? (code)

What does this print?

Tt, Tp = 10, 20
N = 3
print(min(1.0, N / (1 + 2 * Tp / Tt)))
  1. A.1.0
  2. B.0.2
  3. C.0.6
  4. D.0.75
Answer & explanation

Correct answer: 0.6

a = 2, so 1 + 2a = 5 and the efficiency is 3 / 5 = 0.6.

Can you get the rest right without peeking?

Take the timed Quiz: Flow Control and Sliding Window quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →