Scala MCQ

  1. What is Scala?
  2. Scala is a programming language invented by _____.
  3. What is the advantage of Scala?
  4. What are the Scala variables?
  5. Which one of the following Programming languages uses both object-oriented programming and functional programming paradigms?
  6. Scala stands for “____.”
  7. What are the few collections in Scala?
  8. Which of the following are the IDEs(Integrated Development Environments) for Scala?
  9. The ___ is a representation of a map of all published Scala libraries.
  10. Is Scala is Case Sensitive language?
  11. Which of the following are true regarding While loop?
  12. The variable defined using __ keywords are mutable and can be changed any number of times.
  13. Which one of the following keyword use to define a function in Scala?
  14. Select the output for the following line of code: println(40.getClass)
Scala MCQ

Take Scala MCQ Quiz & Online Test to Test your Knowledge

We have listed below the few Scala MCQ Questions that check your basic knowledge of Scala. This Scala MCQ Test contains 20+ Multiple Choice Questions. You have to select the right answer to the question. Apart from this, you can also download here Scala MCQ PDF, completely free.

  • Programming language
  • Framework
  • Platform
  • None of the above
View Answer
  • Mr. Martin Odersky
  • James Gosling
  • Dennis Richie
  • None of the above
View Answer
  • Less error prone functional style
  • High maintainability and productivity
  • High scalability
  • All of these
View Answer
  • var myVar : Int=0;
  • val myVal: Int=1;
  • Both A and B
  • None of the above
View Answer
  • Scalable language
  • Sequential language
  • Script language
  • Scalar language
View Answer
  • Array
  • List
  • Sets
  • All of these
View Answer
  • Scala Library Index
  • Scaladex
  • Scala Document
  • Both A and B
View Answer
  • Repeats a statement or group of statements while a given condition is true.
  • It tests the condition before executing the loop body.
  • Both A and B
  • None of the above
View Answer
  • This causes a compilation error
  • This causes a runtime error
  • int
  • 40
  • Unit is like void in Java
  • () is an empty tuple that represents a Unit
  • Both A and B
  • None of the following
View Answer
  • var greeting = "Hello world!";
  • var greeting:String = "Hello world!";
  • Both A and B
  • None of the above
View Answer
  • String concat(String str)
  • boolean contentEquals(StringBuffer sb)
  • byte getBytes()
  • All of the above
View Answer
  • require
  • assert
  • Precondition
  • None of the above