Close

Spring MVC - Basic Concepts MCQ

« Tutorial
0 of 0 answered ( ✔ 0 | ✘ 0 )

1. What does MVC stand for in Spring MVC?

2. What is the main role of the DispatcherServlet in Spring MVC?

3. Which annotation is used to mark a class as a Controller in Spring MVC?

@...
public class MyController {
    // ...
}

4. What is the purpose of the @RequestMapping annotation?

5. What does a ViewResolver do in Spring MVC?

6. What is the default scope of a Spring MVC Controller bean?

7. What is the role of the Model in Spring MVC?

8. Which interface represents a View in Spring MVC?

// Choose the correct interface
public interface ... {
    void render(...);
}

9. What is the purpose of WebApplicationInitializer in Spring MVC?

10. What is AnnotationConfigWebApplicationContext used for?

11. What is the main benefit of using the MVC pattern in Spring MVC?

12. What does the DispatcherServlet use to find the appropriate controller for a request?

13. What does a controller method typically return in Spring MVC?

14. What is the role of the View in the MVC pattern?

15. What is the purpose of InternalResourceViewResolver?

Join