> Documentation index: https://developer.android.com/courses/llms.txt

# Architecture Components

<br />


Return to pathway
1.

   ## Which method is first called when the app no longer has focus?

   onPause() onStart() onCreate() onStop()
2.

   ## After ___, the app is no longer visible on screen.

   onPause() onStart() onCreate() onStop()
3.

   ## Use ___ to write a debug message. This method takes two arguments: the log tag and the log message.

   `Log.i()` `Log.d()` `Log.e()` `Log.w()`
4.

   ## To save a value that needs to survive a configuration change, declare its variables with ___.

   `MutableState{}` `rememberSaveable{} ` `remember{}` State Hoisting
5.

   ## The separation of concerns design principle states that the app should be divided into classes, each with separate responsibilities.

   True False
6.

   ## The UI is what the user sees, while the UI state is what the app says they should see.

   True False
7.

   ## According to the recommended app architecture, each application should have at least the following two layers:

   The domain layer and the data layer The UI layer and the data layer Repository layer and the UI layer The domain layer and the UI layer
8.

   ## `StateFlow` is a data-holder observable flow that emits the current and new state updates.

   True False
9.

   ## Which of the following configurations should be added to the `build.gradle` file to add dependencies for the unit test source code?

   `implementation` `testImplementation` `debugImplementation` `androidTestImplementation`
10.

    ## Unit tests are executed on an Android device or emulator.

    True False

<button class="button-primary devsite-quiz-submit-button" type="submit"> Submit answers </button>


*error_outline* An error occurred when grading the quiz. Please try again.