Quiz

Test your understanding of some Kotlin concepts.

We'll cover the following...
1

What would be the output of the given code?

fun main()
{
  val strings = listOf("1234567")
  val lengths = strings.map { it.length }
  println(lengths)
}
A)

[1234567]

B)

[7]

C)

[1, 1, 1, 1, 1, 1, 1]

D)

None of the above

Question 1 of 70 attempted
...