Correct Answer: 2
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Scala Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Scala MCQ Questions
Q2. What value does this code return? val m1 = Map("a"->1,"b"->2,"c"->3) m1("a")
What is the value of z after executing this code? val y = List('a','b') val z = y::List('c')
How would you get a List that was the result of appending `5:Int` to a `List(1,2,3)`. The order of the elements in the resulting List is irrelevant.
If you are defining scala classes in a 'package examplepackage', and want to ensure that a function 'foo' is only accessible by classes defined in the same package, how would you declare that function?
When importing all the names of a package or class, which character do you use instead of " * "?