Quiz: Collections
Test your understanding of the concepts discussed in this chapter.
1
What is the result of the following code?
fun main() {
val set = setOf(1, 2, 2, 4)
println(set.size)
}
A)
1
B)
2
C)
3
D)
4
Question 1 of 50 attempted
Get hands-on with 1200+ tech skills courses.