Related to Scala Constuct



1 Which of the following are the key concepts of Functional Programming a. Immutability b. Pure functions c. Inheritance d. Referential Transparency .



2 Can the following pseudo function be considered a pure function ? function getMeTimeAdded(arg Integer) = currentTime + Integer



3 You can modify an immutable object once created (Yes/No)


4 Scala is a pure functional programming language (True/False)


5 Functional programming language cannot be an object oriented language too (True/False)



6 For the given statement,


val s = List(1,2,3)


What would be the type of s?


7 Is this a valid expression val f: Int = (x: Int) => x + 1



8 What is the preferred qualifier for defining a variable in Scala.


9 What is the default class List is imported from ?


10 Functions are first class objects in function