--:--









Quiz for Spring MVC

Course: JAVA | Subject: Java | Topic: Spring Framework (Spring Boot)



Logo

Q1: What does MVC stand for in Spring MVC?

Logo

Q2: Which annotation is used to define a controller in Spring MVC?

Logo

Q3: Which annotation is used to map HTTP requests to handler methods?

Logo

Q4: Which return type allows Spring MVC to resolve the view name?

Logo

Q5: Which annotation binds a method parameter to a request parameter?

Logo

Q6: Which annotation is used to bind path variables in the URL?

Logo

Q7: What is the purpose of Model in Spring MVC?

Logo

Q8: Which annotation is used to return raw JSON or XML in Spring MVC?

Logo

Q9: Which annotation combines @Controller and @ResponseBody?

Logo

Q10: Which class is used to represent both model and view?

Logo

Q11: Which component in Spring MVC processes incoming requests?

Logo

Q12: What is the default return type of a controller method in Spring MVC?

Logo

Q13: Which annotation binds an object to the HTTP request body?

Logo

Q14: What does @ModelAttribute do in Spring MVC?

Logo

Q15: What is the role of ViewResolver in Spring MVC?

Logo

Q16: Which annotation in Spring MVC maps a method to an HTTP GET request?

Logo

Q17: Which annotation maps form inputs to a POJO in Spring MVC?

Logo

Q18: Which annotation should be used on a method to handle form submissions?

Logo

Q19: What is the purpose of BindingResult in Spring MVC?

Logo

Q20: Which view technologies are supported by Spring MVC?

Are you ready to start test? Set your time limit