JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Scala interview questions
Scala interview questions
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 5
1. What about this one? println("frankl"||true)
A. TRUE
B. FALSE
C. The code doesn’t print anything
D. This code throws an error
Show Correct Answer
Correct Answer is :
This code throws an error
2. Select the output for the following line of code:println(40.getClass)
A. This causes a compilation error
B. This causes a runtime error
C. int
D. 40
Show Correct Answer
Correct Answer is :
int
3. What is a higher-order function in Scala?
A. It takes other functions as parameters
B. It returns a function as a result
C. Both of these
D. None of these
Show Correct Answer
Correct Answer is :
Both of these
4. Select the correct statements about the apply and unappl
A. apply lets us create an object from arguments
B. unapply lets us take an object apart
C. apply is like a constructor
D. All of the above
Show Correct Answer
Correct Answer is :
All of the above
5. Select the correct statements about Array and ArrayBuffer.
A. Arrays are immutable
B. An ArrayBuffer is of variable size
C. Arrays are similar to Java’s ArrayLists
D. ArrayBuffers are similar to Java’s arrays
Show Correct Answer
Correct Answer is :
An ArrayBuffer is of variable size
Similar Interview Questions
Search for latest jobs
Find Jobs