Scala Online Test | A Secret Box of Knowledge
1. Scala Online Test
After practicing Scala Quiz, we come up with a tricky Scala Online Test. This Scala Online Test has a more interesting MCQ’s for Scala Programming.
Before we start Our Scala online test let’s revise Scala Tutorial, for reference.
Scala Online Test – BEST OF LUCK!!
Q.1 sbt is an open-source build tool for Scala and Java projects. Can it execute tasks in parallel?
Q.2 Which of the following statements is untrue about a functor in Scala?
Q.3 Select the true statements from the following:
Q.4 Left and Right are case classes. True or False?
Q.5 Which of the following statements are true about Either?
Q.6 What Boolean value do the following statements return?
case class People(name:String,age:Int)
Q.7 Select the correct output for the following code:
Q.8 Looking at the previous code, can you predict the output of the following code?
Q.9 Which of the following function definitions are erroneous?
Q.10 Scala is also a:
Q.11 Of the following, select the Scala construct that holds pairwise different elements of the same type.
Q.12 Select the correct value specified by the following line of code:
"abcde" ensuring (_.length>3)
Q.13 Which is the correct value of the following expression?
Q.14 For which kind of data should you use a case class?
Q.15 The following technique/construct lets us transform a function with multiple arguments into a chain of functions. Each of these has one single argument.
Q.16 How do you abruptly stop execution in the REPL?
Q.17 Which of the following is true about Scala and Java?
Q.18 Scala is a portmanteau for:
Q.19 Its Java compatibility makes Scala suitable for:
Q.20 A collection of type collection.Seq is immutable.
Have you enjoyed the Scala Quiz? Share your feedback with us through comment box!
Try our new Scala Quiz that contains important questions of Scala