03 November 2022

ANDROID BASICS WITH COMPOSE

Architecture Components 


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

onPause()

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

onStop()

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

Log.d()

Correct!

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

rememberSaveable{}

State Hoisting

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

True

Correct!

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

True

Correct!

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

The UI layer and the data layer

Correct!

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

True

Correct!

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

testImplementation

Correct!

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

False

Tidak ada komentar:

Posting Komentar

#QUIZ Faktor bentuk

  Faktor bentuk Class ukuran jendela ditentukan oleh seluruh layar fisik untuk multitasking atau segmentasi lainnya. Benar Salah Class ukura...