ExamDumpster

Free AAD sample questions

Work through these free AAD sample questions, which include answers and explanations for the retired Android syllabus. They touch on the activity lifecycle, Room databases and UI testing. Use them to keep your Android basics sharp.

Try them in the simulator Same questions, with study, timed and flashcard modes.

Showing 10 of 20 free sample questions.

Question 1Choose one

**Company Background:** `FieldAgentPro` is an enterprise application used by technicians for on-site job management. A core requirement is robust offline capability, as technicians often work in areas with poor or no internet connectivity. All job data, including customer details, work orders, and inventory parts, must be available offline. **Current Situation:** The development team is designing the data layer for the app. They have decided to use Room for local persistence and Retrofit for network communication with the backend API. The architecture must follow the 'single source of truth' principle, where the UI only observes data from the local Room database. **Requirements:** 1. The app must fetch data from the network and store it in the Room database when online. 2. When offline, the app must seamlessly serve data from the Room database. 3. The UI should be updated automatically whenever the local data changes (either from a network sync or local modification). 4. The data layer must abstract the origin of the data (network vs. local) from the ViewModel and UI. 5. The design should be efficient, avoiding unnecessary network calls if the local data is fresh. Which of the following data layer designs best satisfies all requirements for this offline-first application? erDiagram VIEW_MODEL ||--|{ REPOSITORY : uses REPOSITORY ||--|{ API_SERVICE : fetches_from REPOSITORY ||--|{ ROOM_DAO : accesses API_SERVICE { string type "(Retrofit)" } ROOM_DAO { string type "(Room)" }

Question 2Choose one

To handle a deep link URI such as `https://example.com/products/123`, which element must be correctly configured inside the ` ` tag in the `AndroidManifest.xml` when using the Navigation Component?

Question 3Choose 2

When making a custom Jetpack Compose component accessible, which of the following `semantics` properties are most important for screen readers like TalkBack to properly describe the component's purpose and state? (Select TWO)

Question 4Choose one

A developer is using the Layout Inspector in Android Studio to debug a Jetpack Compose UI. They want to understand why a specific composable is recomposing frequently. Which feature of the Layout Inspector is specifically designed for this purpose?

Question 5Choose one

To define a test method in a local unit test using JUnit 4, which annotation must be placed directly before the function declaration?

Question 6Choose one

An app's Room database is being updated from version 1 to version 2. The update involves adding a new non-null column `last_updated` to an existing `products` table. If a migration strategy is NOT provided, what will happen when a user with the version 1 database updates the app to the version that uses the version 2 database?

Question 7Choose one

In Jetpack Compose, what is the key difference between using `LaunchedEffect` and `rememberCoroutineScope` to launch a coroutine in response to a user action, such as a button click?

Question 8Choose one

True or False: Starting with Android 8.0 (API 26), an app can no longer register most implicit broadcast receivers in its manifest file.

Question 9Choose one

In a Jetpack Compose UI test, how would you find a specific `Button` composable that has been marked for testing and then assert that it is displayed on the screen?

Question 10Choose one

When defining a table for a Room database, which annotation is used to mark a class as a database entity?

10 more free samples are waiting

Create a free account to unlock the whole AAD sample bank, or get full access to all 181 practice questions in the simulator.

Create account