What is the purpose of an annotation in Kotlin?
Author: Anonymous
Which item below contains the correct annotations for a func…
Which item below contains the correct annotations for a function that allows the app to be previewed in Android Studio design pane?
Like Java, Kotlin supports the += and -= operators. Unlike J…
Like Java, Kotlin supports the += and -= operators. Unlike Java, Kotlin does not support the ++ and — operators.
According to Google, what does it mean that Android developm…
According to Google, what does it mean that Android development is “Kotlin-first”?
What does this output? var cars = 10 cars += 5 println(“Ther…
What does this output? var cars = 10 cars += 5 println(“There are $cars cars”)
In Kotlin, the following function call is valid fun calculat…
In Kotlin, the following function call is valid fun calculateTax(price: Double, rate: Double, includeLocal: Boolean ): Double { … } calculateTax(9.99, includeLocal = true, rate = 0.08)
What is wrong with this code? var size: Int = 3.14
What is wrong with this code? var size: Int = 3.14
Kotlin is _____________ compatible with Java.
Kotlin is _____________ compatible with Java.
Which of the following best describes the UI hierarchy in An…
Which of the following best describes the UI hierarchy in Android’s Jetpack Compose?
In the code below, what is the purpose of onCreate()? class…
In the code below, what is the purpose of onCreate()? class MainActivity : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContent { … } } }