← 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])
- A.blue
- B.green
- C.red
- 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 →