Quiz

Test your understanding of some Kotlin concepts.

We'll cover the following...
Technical Quiz
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


1 / 7
...