HTTP u0026 REST Fundamentals for Mobile and Wireless Clients Quiz

Test your understanding of essential HTTP and REST principles, including status codes, idempotency, and handling network challenges common in mobile and wireless scenarios.

  1. Question 1

    Which HTTP method is considered idempotent and is safe to repeat if a mobile client is unsure if the original request succeeded?

    1. POST
    2. PUT
    3. TRACE
    4. CONNECT
    5. PATCH
  2. Question 2

    What does the HTTP status code 404 indicate when a mobile app tries to fetch a resource?

    1. Method not allowed
    2. Request successful
    3. Created
    4. Bad gateway
    5. Resource not found
  3. Question 3

    When a mobile client receives a 200 OK HTTP response after making a GET request, what does this mean?

    1. Unsupported media type
    2. Request succeeded with content
    3. Request failed
    4. Resource deleted
    5. Partial content returned
  4. Question 4

    Which status code should a REST API return when a resource has been successfully created, such as after a POST request from a mobile device?

    1. 201 Created
    2. 204 Reset
    3. 100 Continue
    4. 500 Error
    5. 304 Not Modified
  5. Question 5

    If a wireless client repeatedly sends a GET request for the same resource, which HTTP property ensures no unintended side effects occur?

    1. Authentication
    2. Deprication
    3. Cache-Controll
    4. Idempotency
    5. Batching
  6. Question 6

    A mobile client gets a 429 Too Many Requests response; what is the typical next action the client should take?

    1. Wait and retry after a delay
    2. Clear all data
    3. Switch to POST
    4. Resend immediately
    5. Request a redirect
  7. Question 7

    In the context of APIs, what does pagination help with when a wireless app loads a long list of items?

    1. Reducing data transfer by splitting results
    2. Authenticating users
    3. Encrypting data in transit
    4. Compressing images
    5. Increasing battery usage
  8. Question 8

    A mobile app uses query parameters ?limit=10u0026offset=20 when fetching data; what is this technique called?

    1. Redirecting
    2. Sorting
    3. Caching
    4. Pagination
    5. Filtration
  9. Question 9

    If a POST request is repeated due to a network timeout, which problem could occur if the server does not properly handle idempotency?

    1. Duplicate resource is created
    2. Different status code
    3. Faster response
    4. Compressed data sent
    5. Resource is not created
  10. Question 10

    Which status code would a mobile app most likely receive when sending a DELETE request for a resource that does not exist?

    1. 200 OK
    2. 301 Moved
    3. 202 Accepted
    4. 404 Not Found
    5. 400 Unauthorized