Scala Quiz | 5 Min Challenge for Scala Programming
Don't become Obsolete & get a Pink Slip
Follow DataFlair on Google News & Stay ahead of the game
1. Scala Quiz
After studying all the Scala Tutorial, now you are ready to face this Scala Quiz Challenge. This Scala Quiz will help you to boost your Scala knowledge and helps to prepare for Scala interview.
Each question of Scala Quiz is of multiple type questions (Scala MCQ’s) and contains relevant links a below, to get more information about Scala Programming Language.
ALL THE BEST!! For Scala Quiz
Q.1. Without an explicit import, maps in Scala are by default:
Q.2. Functions and numbers are objects in Scala.
Q.3. Every class in Scala inherits from a super class. Implicitly, this is scala.AnyRef.
Q.4. What is Scala’s programming paradigm?
Q.5. We can have static members in classes.
Q.6. Scala is case-insensitive. Identifiers Name and name are the same things.
Q.7. What does type inference mean?
Q.8. Omitting a semicolon(;) at the end of a statement causes the compiler to throw an error.
Q.9. UNIT is a data type in Scala. It pertains to no meaningful information.
Q.10. Which of the following statements are true about Lists and Arrays?
Q.11. A class inheriting from a trait and implementing its interface inherits all code in it.
Q.12. Consider the following statements about vals and vars. Select the ones that are true.
Q.13. How do you turn the string “batmanstein” to the string “Man”?
Q.14. A closure is:
Q.15. We use the following keyword to define a function in Scala:
Q.16. Select the correct statements for Nil, Null, None, and Nothing.
Q.17. What is a monad in Scala?
Q.18. Select the true statements about iterators.
Q.19. We do not need to pass these parameters to a method when calling it:
Q.20. What is a type class in Scala?
We hope, you give all correct answers to this Scala Quiz. Have you enjoyed the Scala Quiz? Share your feedback with us!
Play Our Next Scala Quiz – Scala Tricky Quiz