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

# Navigation in Jetpack Compose

<br />


Return to pathway
1.

   ## A route is defined with a(n) ___ data type.

   `@Composable` function `NavHost.Route` `String` `NavRoute`
2.

   ## With a `NavHost`, you must explicitly specify a starting screen.

   True False
3.

   ## It's considered best practice to not pass a `NavHostController` to individual composables.

   True False
4.

   ## ___ is a composable that manages which screen is displayed based on a given route.

   `NavController` `NavHostController` `NavHost` `ComposableNavigator`
5.

   ## The `composable()` function called in a `NavHost` takes which two parameters?

   Destination content and a route A route and composable content A path and a composable Composable content and an intent.
6.

   ## You can change the currently displayed route using the ___ method.

   `update()` `composable()` `transition()` `navigate()`
7.

   ## The ___ method removes one or more screens from the backstack.

   `popToStartDestination()` `popBackStack()` `popComposable()` `popToBackStack()`
8.

   ## In a multi-screen app, navigating to a new screen puts it on the bottom of the backstack.

   True False
9.

   ## Intent ___ contain additional data passed to an Intent.

   arguments extras parameters properties
10.

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

    True False
11.

    ## Which of the following are true about the Back and Up buttons?


    Choose as many answers as you see fit.
    The Back button is a system button The Up button is provided by the system at the bottom of the screen The Back button is part of the `AppBar` The Up button in the `AppBar` automatically navigates to the previous screen. The Back button only appears if you use navigation. The Up button can be shown or hidden, depending on the current screen.

<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.