← Quiz: Design a Video Streaming Platform: all 10 questions
Quiz: Design a Video Streaming Platform · Question 8 of 10
What does this print? (code)
What does this print?
ladder = [("360p", 0.8), ("720p", 2.8), ("1080p", 5.0)]
bw = 4.0
print([n for n, m in ladder if m <= bw * 0.8][-1])
- A.1080p
- B.720p
- C.360p
- D.An error
Answer & explanation
Correct answer: 720p
Usable bandwidth is 3.2 Mbps; 720p (2.8) fits, 1080p (5.0) does not.
Can you get the rest right without peeking?
Take the timed Quiz: Design a Video Streaming Platform quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →