GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

Author Archives: Anonymous

Which library does Module 12 use to talk to a REST API?

Which library does Module 12 use to talk to a REST API?

Read Details

Given this Retrofit service, which JSON response would parse…

Given this Retrofit service, which JSON response would parse without error into List? @Serializable data class Photo(val id: String, val imgSrc: String) interface MarsApi { @GET(“photos”) suspend fun photos(): List }

Read Details

Which of the following are reasons a sealed class (or sealed…

Which of the following are reasons a sealed class (or sealed interface) is a good fit for modeling a Compose screen’s UiState? (Select all that apply.)

Read Details

Which DAO method correctly exposes all incomplete tasks as a…

Which DAO method correctly exposes all incomplete tasks as a stream the UI can observe? @Dao interface TaskDao { // which one? }

Read Details

What is the main purpose of ViewModel in a Compose screen?

What is the main purpose of ViewModel in a Compose screen?

Read Details

Which Jetpack library is the recommended replacement for Sha…

Which Jetpack library is the recommended replacement for SharedPreferences in modern Android apps?

Read Details

What does this snippet expose to the UI, and how should the…

What does this snippet expose to the UI, and how should the UI read it? class CounterViewModel : ViewModel() { private val _count = MutableStateFlow(0) val count: StateFlow = _count.asStateFlow() fun inc() { _count.value += 1 } }

Read Details

Which DataStore variant stores simple key/value pairs like a…

Which DataStore variant stores simple key/value pairs like a theme flag or display name?

Read Details

What does “state hoisting” mean?

What does “state hoisting” mean?

Read Details

In the Activity lifecycle, onPause is always called before o…

In the Activity lifecycle, onPause is always called before onStop.

Read Details

Posts pagination

Newer posts 1 … 48 49 50 51 52 … 88,163 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top