← 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)))
- A.1.0
- B.0.2
- C.0.6
- 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 →