Scala Quiz | 5 Min Challenge for Scala Programming
This Scala Quiz will help you to boost your Scala knowledge and help to prepare for Scala interview.
DataFlair has published a series of Scala Quizzes from basic to advanced.
Before you start, please bookmark all quizzes and finish them before appearing for the next interview:
All The Best For Scala Quiz!!
0 of 20 questions completed
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 20 questions answered correctly
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
- Review / Skip
Without an explicit import, maps in Scala are by default:CorrectIncorrect
Functions and numbers are objects in Scala.CorrectIncorrect
Every class in Scala inherits from a super class. Implicitly, this is scala.AnyRef.CorrectIncorrect
What is Scala’s programming paradigm?CorrectIncorrect
We can have static members in classes.CorrectIncorrect
Scala is case-insensitive. Identifiers Name and name are the same things.CorrectIncorrect
What does type inference mean?CorrectIncorrect
Omitting a semicolon(;) at the end of a statement causes the compiler to throw an error.CorrectIncorrect
UNIT is a data type in Scala. It pertains to no meaningful information.CorrectIncorrect
Which of the following statements are true about Lists and Arrays?CorrectIncorrect
A class inheriting from a trait and implementing its interface inherits all code in it.CorrectIncorrect
Consider the following statements about vals and vars. Select the ones that are true.CorrectIncorrect
How do you turn the string “batmanstein” to the string “Man”?CorrectIncorrect
A closure is:CorrectIncorrect
We use the following keyword to define a function in Scala:CorrectIncorrect
Select the correct statements for Nil, Null, None, and Nothing.CorrectIncorrect
What is a monad in Scala?CorrectIncorrect
Select the true statements about iterators.CorrectIncorrect
We do not need to pass these parameters to a method when calling it:CorrectIncorrect
What is a type class in Scala?CorrectIncorrect
We hope, you give all correct answers to this Scala Quiz. Have you enjoyed the Scala Quiz? Share your feedback with us!
Do not forget to share your score in the comments and challenge your friends to score more.