Close
« Tutorial

Spring MVC - HTTP PATCH Request MCQ

0/13
0 ✓
0 ✗

1. What does the HTTP PATCH method do?

2. What does the HTTP PUT method do?

3. What is the main difference between PUT and PATCH?

4. A user wants to change only the email of an existing user record. All other fields should stay the same. Which HTTP method fits best?

5. Which HTTP method creates or modifies a resource without targeting a specific resource URI?

6. Which Spring MVC annotation maps a controller method to HTTP PATCH requests?

7. Which annotation is the same as @PatchMapping("/items")?

8. Which annotation gives a controller method access to the body of an HTTP request?

9. A PATCH request sends form data in its body. Which method parameter type can hold this data as keys, each with one or more values?

10. Which content type is used for a request body that contains simple form data like id=1&content=hello?

11. A normal HTML form can only send GET or POST requests. How can a web page send an HTTP PATCH request?

12. Which curl option sets the HTTP method to PATCH?

13. A controller method handles a PATCH request and returns the text "Updated" directly as the response body. Which annotation makes this possible?

Join