Which composable efficiently renders a long, scrollable, vertically arranged list by only composing visible items?
Author: Anonymous
Which snippet is the idiomatic way to hold an Int counter in…
Which snippet is the idiomatic way to hold an Int counter inside a composable?
Given fun greet(name: String = “friend”) = “Hi, $name”, call…
Given fun greet(name: String = “friend”) = “Hi, $name”, calling greet() with no arguments returns “Hi, friend”.
Which of the following are valid ways to iterate the numbers…
Which of the following are valid ways to iterate the numbers 1 through 5 in Kotlin? (Select all that apply.)
What does Kotlin generate automatically for a data class?
What does Kotlin generate automatically for a data class?
Which Compose layout stacks its children on top of each othe…
Which Compose layout stacks its children on top of each other, aligned inside the parent’s bounds?
Which of the following are true about Kotlin data classes? (…
Which of the following are true about Kotlin data classes? (Select all that apply.)
An abstract class in Kotlin can be instantiated directly wit…
An abstract class in Kotlin can be instantiated directly with its constructor.
Which when branch executes for x = 3? val label = when (x) {…
Which when branch executes for x = 3? val label = when (x) { 1, 2 -> “low” in 3..5 -> “mid” else -> “high” }
Which tool assembles an Android project, resolves dependenci…
Which tool assembles an Android project, resolves dependencies, and produces the APK?