What will be the result of accessing tuple element?
val tuple5 = ("a", 1, 2.2, true, "five")
tuple5._2 
Explanation
In Scala, the tuples stared with 1 and not 0. Check the official doccumentation Scala tuples

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Scala quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes