InterviewPitch

Land the job you want — prepare
with Real interviews Q&A

Curated interview questions, company-wise guides and coding rounds. Practice mock interviews, improve with feedback, and track your progress.

Q&A
Top curated interview packs
Company-wise & role-wise packs, quality assured.
Mock interview
AI scoring
Coding rounds
Top 10 sets
Beginner
1. What is Scala?
Scala is a hybrid programming language that supports both object-oriented and functional programming and runs on the JVM.
Beginner
2. Who developed Scala?
Scala was developed by Martin Odersky in 2004.
Beginner
3. What does Scala stand for?
Scala stands for "Scalable Language".
Beginner
4. Is Scala statically typed?
Yes, Scala is statically typed with strong type inference.
Beginner
5. What is a case className?
A special className used for immutable data. It automatically provides equals, hashCode, and toString methods.
Beginner
6. What is an object in Scala?
An object defines a singleton instance. It is used instead of static members.
Beginner
7. What is a trait?
A trait is similar to an interface but can contain method implementations.
Beginner
8. What is immutable in Scala?
Immutable means the value cannot be changed after creation (val keyword).
Beginner
9. Difference between val and var?
val is immutable. var is mutable.
Beginner
10. What is Option in Scala?
Option is used to avoid null values. It has two types: Some and None.
Beginner
11. What is a companion object?
An object with the same name as a className used to define factory methods.
Beginner
12. What is pattern matching?
A powerful feature similar to switch-case but more flexible.
Beginner
13. What is a higher-order function?
A function that takes another function as parameter or returns a function.
Beginner
14. What is closure?
A function that accesses variables outside its scope.
Beginner
15. What is a tuple?
A container for fixed number of elements of different types.
Intermediate
16. What is implicit in Scala?
Implicit allows automatic parameter passing or type conversion.
Intermediate
17. What is a lazy val?
lazy val is initialized only when accessed for the first time.
Intermediate
18. What is for-comprehension?
A concise way to work with collections and monads.
Intermediate
19. What is map()?
Applies a function to each element in a collection.
Intermediate
20. What is flatMap()?
Similar to map but flattens nested collections.
Intermediate
21. What is filter()?
Returns elements that satisfy a condition.
Intermediate
22. What is Future?
Represents asynchronous computation result.
Intermediate
23. What is Monad?
A design pattern used in functional programming (e.g., Option, Future).
Intermediate
24. What is tail recursion?
A recursion optimized by compiler to avoid stack overflow.
Intermediate
25. What is sealed trait?
Restricts inheritance to same file.
Intermediate
26. What is covariance?
Allows subclassName types to be substituted (+T).
Intermediate
27. What is contravariance?
Allows superclassName types to be substituted (-T).
Intermediate
28. What is Either?
Used for error handling (Left = error, Right = success).
Intermediate
29. What is Try?
Handles exceptions functionally (Success / Failure).
Intermediate
30. What is Scala collection framework?
A rich set of immutable and mutable collections like List, Set, Map.
Advanced
31. What is Akka?
Toolkit for building concurrent and distributed systems in Scala.
Advanced
32. What is Spark in Scala?
Apache Spark is a big data processing framework written in Scala.
Advanced
33. What is implicit className?
Used to add new methods to existing classNamees.
Advanced
34. What is currying?
Transforming a function with multiple arguments into multiple parameter lists.
Advanced
35. What is partial function?
A function defined only for certain inputs.
Advanced
36. What is type inference?
Compiler automatically detects variable types.
Advanced
37. What is by-name parameter?
Answer here
Advanced
38. What is functional programming?
Programming paradigm based on pure functions and immutability.
Advanced
39. What is referential transparency?
Expression can be replaced with its value without changing behavior.
Advanced
40. What is type className?
A pattern that enables ad-hoc polymorphism.
Coding Round
41. Hello World Program
Answer here
Coding Round
42. Reverse a string
Answer here
Coding Round
43. Find even numbers
Answer here
Coding Round
44. Map example
List(1,2,3).map(_ * 2)
Coding Round
45. Factorial using recursion
def fact(n:Int):Int = if(n==0) 1 else n * fact(n-1)
Coding Round
46. Pattern matching example
Answer here
Coding Round
47. Create case className
case className Person(name:String, age:Int)
Coding Round
48. Using Option
val name: Option[String] = Some("John")
Coding Round
49. Using Future
Answer here
Coding Round
50. Sort a list
List(3,1,2).sorted