Choose a topic to test your knowledge and improve your Scala framework skills
Scala programming language was developed by -
What is the paradigm of the Scala programming language?
Scala stands for ___.
Which of the following is not a feature of Scala?
Is Java required before installing Scala on the system?
The semicolon (;) in Scala is -
The Scala compiler starts executing from -
Which of the following are not present in Scala?
The correct syntax for creating Single line comments in Scala is,
The correct output of the following code is, object MyClass { def main(args: Array[String]) { var i,j=0 for(i <- 0 to 3){ for(j <- 0 until 2){ if(i + j == 3){ print((i*j)+" ") } } } } }
Which of these is not a primary data type in Scala -
The size of integer data type in Scala is -
Why is Double better than Float values?
Which class is the super-class of all classes in Scala?
Which type class does not inherit AnyVar?
The correct output of the below code block is - object MyClass { def main(args: Array[String]) { var a : Float = 454.32138988f var b : Double = a; printf("a = " + a + " b = " + b) } }
Default values of string type when it is not initialized -
Which type in Scala is a subtype of all types -
Statement returned by function when no values are returned in Scala - None of these
In Scala, can you return two values?
What is the range defined by the below statement - range(13, 17, 2)
Which is not a Scala method for printing text on the screen?
What is the output of following code? val i = 43 i = 231 printf(i)
Literals in Scala are ___.
Based on Type Casting, which of these conversions is lossy or invalid?
Which type of typecasting is done by the compiler?
Explicit Conversion is -
The getClass() method is used to -
Converting Character to Integer will return
Which Scala keyword is used to initialize a variable?
Lazy initialization is -
The total number of keywords in Scala are -
Which of these is not a keyword in Scala?
Using a keyword as a value will lead to -
Is 'sealed' a keyword in Scala -
Identifiers in Scala are names given to -
Which of these is not a type of identifier -
Is the following identifier valid? 12Scala_3
Literal Identifier is -
The correct output of the following code is - object myObject { def main(args: Array[String]) { var _value1 = 54 var 3value_2 = 65 println("The sum of two values is " + (_value1 + value_2)) } }
Which variable in Scala can save memory while declaring variables?
How many types of operators are present in Scala?
Logical operators in Scala are used to -
What is the use of the "&=" operator in Scala -
Find the result of the following code block - (3 + 4 * 5) >>> 1
Relation operators are -
What is the symbolic operator in Scala?
The final keyword in Scala is used to -
A final method can be applied on?
What is the scope of a local variable in Scala?