โ† All AAD Flashcard Decks

Quality Assurance & Compliance Flashcards

7 cards from real AAD practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 Quality Assurance & Compliance flashcards as text
  1. Which assertion library is recommended for readable test assertions in AndroidX Test projects?

    Answer: Truth

    Google's Truth library provides fluent, readable assertions and is the recommended choice in AndroidX Test documentation.

  2. What does the `@Rule` annotation with `ActivityScenarioRule` provide in an Espresso test?

    Answer: Automatically launches and tears down an Activity for each test

    `ActivityScenarioRule` launches the specified Activity before each test and cleans it up afterward.

  3. Which lint check category in Android enforces accessibility guidelines such as missing content descriptions?

    Answer: Accessibility

    Android Lint's Accessibility category flags issues like missing `contentDescription` on ImageViews.

  4. When writing a ViewModel unit test, what is the recommended way to handle `viewModelScope` coroutines synchronously?

    Answer: Use TestCoroutineDispatcher / UnconfinedTestDispatcher and replace Main dispatcher

    Replacing `Dispatchers.Main` with a `TestDispatcher` lets tests control coroutine execution synchronously.

  5. Which Play Store policy requires that apps collecting personal data from children comply with?

    Answer: Children's Online Privacy Protection Act (COPPA)

    Apps directed at children must comply with COPPA, which restricts collection of personal data from users under 13.

  6. What is the effect of calling `Mockito.verify(mock, times(2)).someMethod()` in a unit test?

    Answer: Asserts that someMethod was called exactly twice on the mock

    `verify` with `times(2)` fails the test if `someMethod` was not invoked exactly two times on the mock object.

  7. Which section of the Google Play Console requires developers to complete a questionnaire about data collected by their app?

    Answer: Data Safety

    The Data Safety section requires developers to disclose what data the app collects, shares, and how it is handled.