Correct Answer: A MatchError would be thrown.
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
Scala is:
True or False? Multiple classes can be imported from the same package by enclosing them in curly braces {}.
Does Scala support the return keyword?
True or False? Like pre 1.5 Java, Scala suffers from lack of genericity.
When a class inherits from a trait, it inherits all the code contained in the trait and implements the trait's:
What do you call objects with immutable state?
You have created an array using val. Can you change the value of any element of the array—and why or why not?
When using pattern matching, which character matches on any object?
What is the data type of y after this code is executed? val y = (math floor 3.1415 * 2)
Which Scala type may throw an exception or a successfully computed value, and is commonly used to trap and propagate errors?