Examveda

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)

A. Val c = list of (a, b)

B. Val c = a + b

C. Delegates.observer()

D. Val c = listOf(*a, *b)

Answer: Option D


This Question Belongs to Computer Science >> Kotlin Program

Join The Discussion

Related Questions on Kotlin Program

What is Kotlin?

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.