Complete the code to print "Hello, Kotlin!" in Kotlin REPL.
println([1])In Kotlin, strings must be enclosed in double quotes. So to print a string, use println("string").
Complete the Kotlin script to declare a variable with value 10.
val number: Int = [1]To assign an integer value to a variable, use the number without quotes. Quotes make it a string.
Fix the error in the Kotlin script to print the sum of two numbers.
val sum = 5 [1] 3 println(sum)
The plus sign (+) adds two numbers in Kotlin.
Fill both blanks to create a Kotlin map of words to their lengths.
val lengths = mapOf([1] to [2])
Use a string as the key and its length as the value in the map.
Fill all three blanks to create a Kotlin script that filters a list for numbers greater than 3.
val filtered = listOf(1, 2, 3, 4, 5).filter { it [1] [2] } println(filtered[3])
The filter uses > 3 to select numbers greater than 3. The result is printed as a joined string.
