You have two arrays, a and b. Which line combines a and b as a list containing the contents of both?
val a = arrayOf(1, 2, 3) val b = arrayOf(100, 200, 3000)
val a = arrayOf(1, 2, 3) val b = arrayOf(100, 200, 3000)A. Val c = list of (a, b)
B. Val c = a + b
C. Delegates.observer()
D. Val c = listOf(*a, *b)
Answer: Option D
Related Questions on Kotlin Program
A. A new version of Java.
B. A JavaScript framework.
C. A statically-typed programming language for the JVM, Android, and browser.
D. A database management system.
Which platform does Kotlin primarily target?
A. Python Bytecode
B. JavaScript
C. JVM (Java Virtual Machine) Bytecode
D. PHP

Join The Discussion