Search⌘ K

Quiz

Explore your grasp of Kotlin fundamentals by completing this quiz. It helps reinforce your knowledge of Kotlin syntax, variable declarations, functions, and higher-order functions, preparing you for more advanced topics.

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
...