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

Quiz: Consistency and Quorums · Question 6 of 10

What does this print? (code)

What does this print?

replies = [(3, "blue"), (5, "green"), (4, "red")]
print(max(replies)[1])
  1. A.blue
  2. B.green
  3. C.red
  4. D.5
Answer & explanation

Correct answer: green

Tuples compare by version first, so the highest version (5) wins and its value is "green".

Can you get the rest right without peeking?

Take the timed Quiz: Consistency and Quorums quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →