LinkedIn Scala Assessment Answers
The LinkedIn Skill Assessments feature allows you to demonstrate your knowledge of the skills you’ve added on your profile. Job posters on LinkedIn can also add Skill Assessments as part of the job application process. This allows job posters to more efficiently and accurately verify the crucial skills a candidate should have for a role.
The topics in the Scala assessment include:
- Data Structures
- Control Flow
- Object Oriented Programming
- Functional Programming
- Data Types
- Pattern Matching
- Exception Handling
- File I/O
Question Format
Multiple Choice
Language
English
LinkedIn Scala Assessment Questions and Answers
- One is a Java object, the other is a Scala object.
- clone() will copy class structures but not the data, while copy() will also copy data into new objects.
- There is no difference.
- copy() allows you to change values during the copying process; clone() does not.
- a
- 2
- b
- 1
- monads
- literal functions
- partially applied functions
- parallel collections
- ArgumentExceptions
- AssertionException
- DiagrammedAssertions
- JUnit
- Array
- ImmutableCollection
- List
- Tuple
- The function has no side effects.
- The function takes no parameters.
- The function returns no value.
- Returning unit types to the function is a closure.
- hexadecimal
- short
- floating point
- long
- List[(String, String)]
- List[(Array, Array)]
- List[(Array, Array)]
- List
- List
- Map
- Tuple
- Array
- AnyVal
- AnyRef
- Method
- Null NOT SURE
- Yes and no. It is different depending on the for construct and what it does. NOT SURE
- Yes, because the for section does not expose its scope.
- No, because for-yield shares the same scope, even though they are within separate curly braces.
- Yes, because they are within different curly braces.
- using regex
- using monads
- using string matching
- using case classes
- List(a,b,c)
- List(List(a, b), c)
- List(c,a,b)
- List(c,List(a,b))
- assert
- require
- precondition
- mustHave
- short
- double
- int
- bigInt
- %
- \_
- ^
- -
- Yes, the reference to the array is immutable, so the location that the array points to is immutable. The values in the array are mutable.
- The 0th element is immutable and cannot be modified. All other elements can be modified.
- Yes, val does not make arrays immutable.
- No, val makes the array and values of the array immutable.
- 1,2,3,4,5
- 0,1,2,3,4
- 1,2,3,4
- 2,3,4,5
- singletons
- stationary objects
- functional objects
- fixed objects
- use array named args
- use tuple named args
- use numbered variables with a _ prefix for example _ 1, _ 2, _ 3
- use numbered variables with a $ prefix - for example $1, $2, $3
- 4
- an error
- 6
- 3
- myFuture.onComplete
- myFuture(status)
- myFuture.Finished
- complete(myFuture)
- %
- &
- \_
- -
- polyinheritance
- multilevel inheritance
- multimode inheritance
- hierarchical inheritance
No comments:
Post a Comment