Architecture Components
- Which
method is first called when the app no longer has focus?
onPause()
- After
___, the app is no longer visible on screen.
onStop()
- Use ___
to write a debug message. This method takes two arguments: the log tag and
the log message.
Log.d()
Correct!
- To save
a value that needs to survive a configuration change, declare its
variables with ___.
rememberSaveable{}
State
Hoisting
- The
separation of concerns design principle states that the app should be
divided into classes, each with separate responsibilities.
True
Correct!
- The UI
is what the user sees, while the UI state is what the app says they should
see.
True
Correct!
- According
to the recommended app architecture, each application should have at least
the following two layers:
The
UI layer and the data layer
Correct!
- StateFlow is a data-holder observable flow that
emits the current and new state updates.
True
Correct!
- Which
of the following configurations should be added to the build.gradle file
to add dependencies for the unit test source code?
testImplementation
Correct!
- Unit
tests are executed on an Android device or emulator.
False
Tidak ada komentar:
Posting Komentar