Quiz-Spring Web MVC
Quiz-Spring Web MVC
Question
A B C D
What is a DispatcherServlet? Used for Dependency Handles all the HTTP requests Used for transaction
Used for Spring AOP.
Injection. and responses. management.
Controller in Spring is .. .
a abstract class concrete class final class an interface
Which are the modules of Web WebSocket, Servlet, Web, WebSocket, Servlet, Web-MVC, HTML, Servlet, WEB,
layer? HTML, JSP, WEB, Portlet
Portlet Web Portlet
What is Spring MVC framework? The Spring web MVC framework
Spring MVC framework is provides model-view-controller Spring MVC framework is
Spring MVC framework
Model-Value-Class architecture and ready used for Transaction
is used for AOP for Web
architecture and used to bind components that can be used to management for Web
Applications.
model data with values. develop flexible and loosely Applications.
coupled web applications.
What is This event is published when This event is published when This event is published
This event is published when the
RequestHandledEvent:event? the Servlet Context is either the HTTP session is when the HTTP Request
HTTP Request is received.
initialized or refreshed. initialized or refreshed. is serviced.
@RequestMapping annotation is
used to map a HTTP request
method (GET or POST) to a
FALSE TRUE
specific class or method in the
controller which will handle the
respective request?
What annotation is used to map
value to the method argument in @Map @Param @RequestParam @PathVariable
http://localhost/factorial/{value}?
In Spring Web App, which of the
@RestController DispatcherServlet Models Views
following acts as a Front Controller?
What annotation is used to map a
method for PUT request? @PutMapping @PostMapping @Put @Post