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