Direction: Choose the correct option
Q1.
What HTTP method is typically used to create a resource in CRUD?
Direction: Choose the correct option
Q2.
How do you map a method to handle GET request for a specific user (e.g., /users/5)?
Direction: Choose the correct option
Q3.
What annotation binds a URI template variable to a method parameter?
Direction: Choose the correct option
Q4.
How do you retrieve all users in a CRUD controller?
Direction: Choose the correct option
Q5.
What annotation binds the request body to a method parameter?
Direction: Choose the correct option
Q6.
In a POST request to create a user, what should the method return?
Direction: Choose the correct option
Q7.
How do you update a resource using PUT?
Direction: Choose the correct option
Q8.
What HTTP status code is appropriate for a successful DELETE operation?
Direction: Choose the correct option
Q9.
What does @ModelAttribute do in a controller method?
Direction: Choose the correct option
Q10.
How do you handle exceptions in a CRUD controller?
