โ† 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. What is the purpose of the `@Before` annotation in a JUnit 4 test class?

    Answer: Execute a setup method before each test method in the class

    `@Before` methods run before every individual `@Test` method, resetting state for each test.

  2. When should you use `mockStatic()` from Mockito in Android unit tests?

    Answer: When mocking static methods such as utility or factory methods

    `mockStatic()` from `mockito-inline` allows mocking of static methods that cannot be overridden normally.

  3. Which Google Play policy requires apps to provide a functional mechanism for users to request account deletion?

    Answer: Account Deletion Policy

    Google's Account Deletion Policy mandates that apps allowing account creation must also offer an in-app account deletion option.

  4. In Espresso, which ViewMatcher checks that a RecyclerView item at a specific position holds a certain view?

    Answer: RecyclerViewActions combined with atPosition()

    `RecyclerViewActions.actionOnItemAtPosition()` and `atPosition()` matchers let Espresso interact with specific RecyclerView items.

  5. What does the Android Profiler's 'Energy Profiler' measure?

    Answer: Estimated battery usage by CPU, network, and location operations

    The Energy Profiler estimates battery impact from CPU activity, radio usage, and GPS to help reduce drain.

  6. Which approach is recommended for testing Navigation component destinations in unit tests?

    Answer: Use TestNavHostController to verify navigation actions without a real Activity

    `TestNavHostController` lets you set current destination and assert navigation actions in isolation without launching an Activity.

  7. Which Play Console feature lets you release your app to a small percentage of users to detect crashes before a full rollout?

    Answer: Staged rollout

    Staged rollout releases a production update to a configurable percentage of users, limiting crash exposure before full deployment.