HTTP Methods and Status Codes Mastery Quiz Quiz

  1. Identify the Safe HTTP Method

    Which HTTP method is considered 'safe' and is typically used to request data without modifying it?

    1. GET
    2. POST
    3. PUT
    4. DELETE
    5. GIT
  2. Purpose of POST Method

    Which HTTP method is mainly used to submit new data to a server, such as uploading a form?

    1. POST
    2. FETCH
    3. TRACE
    4. GET
    5. PAST
  3. Status Code for Successful Request

    If a client receives the status code 200 in an HTTP response, what does it mean?

    1. The request was successful.
    2. The requested resource was not found.
    3. The server encountered an error.
    4. The request was redirected.
    5. The server is unavailable.
  4. Detecting a Missing Page

    What is the standard HTTP status code returned when you navigate to a non-existing page?

    1. 404
    2. 403
    3. 401
    4. 405
    5. 400
  5. Difference between PUT and PATCH

    In REST APIs, what is the main difference between the PUT and PATCH HTTP methods?

    1. PUT replaces an entire resource, whereas PATCH modifies part of it.
    2. PUT deletes a resource, PATCH creates a resource.
    3. PUT retrieves data, PATCH uploads images.
    4. PUT is not idempotent, PATCH is.
    5. PUT is used for login, PATCH is for logout.
  6. Meaning of HTTP 500

    If you receive an HTTP 500 status code, what does it indicate?

    1. The server encountered an internal error.
    2. The server is down for maintenance.
    3. The request was unauthorized.
    4. The data was not found.
    5. The request was redirected temporarily.
  7. Allowed Methods Scenario

    A client tries to DELETE a resource but receives a 405 status code. What does this mean?

    1. DELETE is not allowed for that resource.
    2. The resource has already been deleted.
    3. The server cannot process the DELETE request due to a conflict.
    4. The server encountered a syntax error in the request.
    5. The DELETE method was misspelled.
  8. Idempotence in HTTP Methods

    Which of the following HTTP methods is idempotent, meaning repeated identical requests have the same effect as one?

    1. PUT
    2. POST
    3. OPTIONS
    4. TRASE
    5. SEND
  9. Client Error Code Example

    Which status code denotes a client error due to malformed syntax, often caused by a bad request?

    1. 400
    2. 401
    3. 403
    4. 504
    5. 402
  10. HTTP Redirection Status

    Which HTTP status code signals that the requested resource has been permanently moved to a new URL?

    1. 301
    2. 302
    3. 404
    4. 500
    5. 305