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

Quiz: DevSecOps Basics · Question 3 of 10

What does this print? (code)

What does this print?

print("2.10.0" > "2.9.0", (2, 10, 0) > (2, 9, 0))
  1. A.True True
  2. B.False True
  3. C.True False
  4. D.False False
Answer & explanation

Correct answer: False True

As text, "1" comes before "9", so the string compare is wrong; tuples compare number by number.

Can you get the rest right without peeking?

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

Start the quiz →