Spring MVC Fundamentals

Check your understanding of controllers,views,and request mapping.

1. Which component acts as the front controller in Spring MVC?
2. What is the primary purpose of the @Controller annotation in Spring MVC?
3. The @RequestMapping annotation can only be applied at the method level in Spring MVC.
4. Which annotations are used to map specific HTTP request methods in Spring MVC? (Select all that apply)
5. What is the role of @RequestParam in Spring MVC?
6. Name the annotation used to bind a request parameter to a model object (full name)
7. @ResponseBody causes a controller method's return value to be written directly to the response body without a view.
8. Which are core components of the Spring MVC request processing flow? (Select all that apply)
9. What is the default HTTP method for @RequestMapping if not explicitly specified?
10. What annotation is used to map a controller method to handle GET requests (full name)
11. Spring MVC controllers must implement the Controller interface.
12. Which interface resolves logical view names to actual view objects?
13. Which are valid return types for a Spring MVC controller method? (Select all that apply)
14. What component maps incoming requests to the appropriate controller handler method?
15. What is the primary role of the Model interface in Spring MVC?
16. Which annotations can be applied at the class level in Spring MVC? (Select all that apply)
17. What does @PathVariable extract from the request URL?
18. Which annotation is used to return data directly in the response body?
19. What is the purpose of @SessionAttributes in Spring MVC?
20. Which view resolver is commonly used to resolve JSP views?
Answered 0 of 0 — 0 correct