Android Kotlin fundamentals quiz

  1. You can create an emulator to simulate the configuration of a particular type of Android device using a tool like ___.
  2. Fill-in-the-blanks

    Enter one or more words to complete the sentence.

    A ___ ___ is a method that is invoked each time the user clicks or taps on a clickable UI element, such as a button.

  3. What parameter specifies the Android API level that Gradle should use to compile your app?
  4. True or false? Scroll view can contain only one view, or view group, as a child.
  5. You can show or hide a view in your app by setting its visibility. Which of the following are valid visibility values?

    Choose as many answers as you see fit.

  6. Fill-in-the-blanks

    Enter one or more words to complete the sentence.

    A ___ is a group of views that are linked together with bidirectional constraints.

  7. What phrase means that the compiler validates types while compiling?
  8. Which of the following is not true about fragments?
  9. Fill-in-the-blanks

    Enter one or more words to complete the sentence.

    The ___ ___ is a dedicated space for app branding and identity.

  10. Fill-in-the-blanks

    Enter one or more words to complete the sentence.

    The ___ ___ plugin of the Navigation component makes passing parameters between fragments safer.

  11. Which of the following are methods in the activity and fragment lifecycles? Select all that apply.

    Choose as many answers as you see fit.

  12. True or false? When your app goes into the background, it's not guaranteed to be destroyed. It may only be stopping and waiting for the user to return to it.
  13. Fill-in-the-blanks

    Enter one or more words to complete the sentence.

    A ___ holds data to be displayed in a fragment or activity, and it can do simple calculations and transformation on data to prepare the data to be displayed by the UI controller.

  14. ___ is a way to restrict direct access to some of an object’s fields.
  15. Fill-in-the-blanks

    Enter one or more words to complete the sentence.

    A(n) ___ represents an object or concept, and its properties, to store in a database.

  16. To keep the UI running smoothly, use ___ for long-running tasks, such as all database operations.
  17. True or false? When used, the enabled attribute determines if a view is visible.
  18. Fill-in-the-blanks

    Enter one or more words to complete the sentence.

    When a user scrolls through a large list, ___ figures out what new items should be on the screen and does just enough work to display those items.

  19. A ___ represents, by default, the items in a row or column when using GridLayout.
  20. Fill-in-the-blanks

    Enter one or more words to complete the sentence.

    When using RecyclerView, you should handle clicks in the ___ because it has access to the data and logic for determining what needs to happen in response to the click.

  21. Which of the following are methods in the activity and fragment lifecycles? Select all that apply.

    Choose as many answers as you see fit.