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

# Load and display images from the internet

<br />


Return to pathway
1.

   ## Which of the following is not a common HTTP operation/method:

   GET POST DELETE SET
2.

   ## The response from a REST web service is commonly formatted in one of the common data transfer formats like XML or JSON.

   True False
3.

   ## Which of the following is not true for the Retrofit library:

   It is a client library. It enables your app to make requests to a REST web service. It converts Kotlin objects to JSON objects. It is a third-party library.
4.

   ## Which of the following applies to a Singleton pattern:

   `object` declarations are used to declare singleton objects in Kotlin. Ensures that one, and only one, instance of an object is created Has one global point of access to that object. All of the above
5.

   ## Each JSON object contains the following:

   A set of key-value pairs separated by a colon. A set of key-value pairs separated by a comma. A set of key-value pairs separated by a semi colon. None of the above
6.

   ## Following Android's recommended app architecture guidelines, an app should have which of the following:

   A UI Layer A Domain Layer A Data Layer A Business Layer
7.

   ## The advantages of using Dependency Injection (DI) in your app include which of the following:


   Choose as many answers as you see fit.
   Helps with the reusability of code Makes refactoring easier Helps with testing Makes your app run faster
8.

   ## If your app has more than one type of data source, they should all be stored in the same repository for ease of use.

   True False
9.

   ## Which of the following is used to replace the `Main` dispatcher with a `TestDispatcher` in a local unit test:

   `runTest` `runBlocking` `Distpatchers.resetMain()` `Dispatchers.setMain()`
10.

    ## The `runTest()` function can be used to test `suspend` functions.

    True False

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