Scala Practice Test
Scala Scala Collections
What is the difference between a Scala `List` and `Vector`?
Select your answer
A
List is mutable; Vector is immutable
B
List has O(1) prepend; Vector has O(log n) random access and is better for large collections
C
Vector only holds Int values
D
List supports parallel operations; Vector does not
Hint
✨ Remove Ads & Unlock Every Exam
— From $1.49