R4RIN
Articles
Java 8
MCQS
Spring MCQ Quiz Hub
Spring Mcq Set 5
Choose a topic to test your knowledge and improve your Spring skills
1. Spring manages UI as flows.
True
False
error
None of these
2. Stated related to Spring Web flows.
view
action
decision
all of the mentioned
3. Once a state has completed its tasks, it fires an event.
True
False
error
None of these
4. Required dependencies to manage web UI flows.
spring web flow distribution.
org.springframework.webflow
all of the mentioned
none of the mentioned
5. Spring Web flow supports.
Unified EL
Object-Graph Navigation Language (OGNL)
All of the mentioned
none of the mentioned
6. Spring Web flow can enable both Unified EL and Object-Graph Navigation Language (OGNL).
True
False
error
None of these
7. To create URL path mappings from the ids of registered flow definitions.
FlowHandlerMapping
FlowHandler
FlowHandlerMappingRequest
none of the mentioned
8. XML Based flow definitions can be validated by:-
Spring Web Flow XSD
Spring IDE
SpringSource Tool Suite
all of the mentioned
9. Element to trigger an action for view module.
on-render
on-action
on-trigger
None of the mentioned
10. Variable to trigger the flow execution.
${flowExecutionUrl}
${exec.flow}
${flowExecutionUrl.match}
none of the mentioned
11. .Servers which listen on port 8080.
Apache Tomcat 6.0
Jetty
None of the mentioned
all of the mentioned
12. Interface which is used to persist instances sessions.
serializable
file.io
io.file.*
none of the mentioned
13. Class which assist Spring Web flow in handling form.
Form
FormAction
FormHandler
Form-Handler
14. Property for action to instantiate form objects.
formObjectClass
formClass
objectClass
none of the mentioned
15. Element which secures web flows.
secured
security
sec
none of the mentioned
16. To secure web flows with Spring Security.
DelegatingFilter
DelegatingFilterProxy
DelegatingProxy
none of the mentioned
17. Group id to add spring security using Maven.
org.springframework.secure
org.springframework.security
org.springframework.securedflow
none of the mentioned
18. auto-config provides only default form-based login service.
True
False
error
None of these
19. To enable Spring security for web flows.
SecurityFlowExecutionListener
SecurityFlowExecution
FlowSecurity
SecurityFlowListener
20. Which of the following class should replace ‘?’. <beans ...> ... <webflow:flow-executor id="flowExecutor"> <webflow:flow-execution-listeners> <webflow:listener ref="securityFlowExecutionListener" /> </webflow:flow-execution-listeners> </webflow:flow-executor> <bean id="securityFlowExecutionListener" class="?" /> </beans>
org.springframework.webflow.security.SecurityFlow
org.springframework.webflow.SecurityFlowExecutionListener
org.springframework.webflow.security.SecurityFlowExecutionListener
org.springframework.security.SecurityFlowExecutionListener
21. Which attribute is used to access security element of web flow.
attribute
attributes-security
attributes
none of the mentioned
22. Spring web flow supports integration with.
JSF
Hibernate
JPA
all of the mentioned
23. To integrate JPA with Spring Web flows.
JpaFlowExecutionListener
HibernateFlowExecutionListener
All of the mentioned
None of the mentioned
24. To integrate Hibernate with Spring Web flows.
JpaFlowExecutionListener
HibernateFlowExecutionListener
All of the mentioned
None of the mentioned
25. HibernateFlowExecutionListener and JpaFlowExecutionListener both belongs to which of the package.
org.springframework.web.persistence package
org.springframework.persistence package
org.springframework.webflow package package
org.springframework.webflow.persistence package
26. JpaFlowExecutionListener and Hibernate Listener binds to flow scope.
True
False
error
None of these
27. Libraries used to integrate Hibernate with JPA.
Hibernate 3
Hibernate 3 Entity Manager
JPA API
All of the mentioned
28. To configure JPA vendor-specific information.
JPA vendor adaptor
Data source
All of the mentioned
none of the mentioned
29. You have to register a flow execution listener in the flow executor.
True
False
error
None of these
30. View Technologies to render Spring Web MVC view.
JSP
Tiles
All of the mentioned
none of the mentioned
31. Submodules of Spring Web Flow to simplify use of JSF and javascript in Spring.
Spring Faces
Spring Javascript
None of the mentioned
All of the mentioned
32. Spring Faces provides a set of client-side validation components for standard JSF input components.
True
False
error
None of these
33. To use JSF Validation components provided by spring faces.
Faces
Spring Javascript
Facelets
none of the mentioned
34. Attribute used to handle web flow requests.
servlet-mapping
servlet-attr
servlet-flow
servlet-requests
35. JSF view handler to enable Facelets and a SpringBeanFacesELResolver to access Spring beans.
FaceletViewHandler
FaceletView
FaceletHandler
none of the mentioned
36. To resolve Facelets views we configure:-
ViewFacelets
ViewResolver
View-resolver
View_Resolver
37. File extension of a view state’s name which is by default loaded by facelet page.
.xml
.hbm.xml
.xhtml
none of the mentioned
38. Navigation in traditional JSF applications is handled by:-
linking directly linking to a resource
commandLink
invoking an action
All of the mentioned
39. For cross field validation or some sort of barrier to ensure state before you start a flow, we use.
FacesContext
FaceletContext
FacesResolver
all of the mentioned
40. To use Spring Faces Components, we register which of the following?
Servlet API
ResourceServlet
All of the mentioned
None of the mentioned
41. Resources retrieved by Spring Faces Component.
JavaScript
CSS
All of the mentioned
None of the mentioned
42. Component which additionally provides a pop-up date picker control for its enclosed input field.
clientDateValidator
clientValidator
dateValidator
validator
43. Component which encloses command button.
validateAll
validateAllClick
validateAllInClick
validateAllOnClick
44. Libraries provided by RichFaces an integration support for Spring web flow.
RichFaces
Slf-4j
Log-4j
All of the mentioned
45. Design pattern implemented by Dispatcher Servlet.
jsp
tiles
front controller
none of the mentioned
46. Class used to give a class behavior of a Dispatcher Servlet.
AbstractController
Controller
Abstract Class
AbstractAction
47. Annotation for Controller Class.
@Before
@Controller
@After
@Exception
48. Handler method annotation.
@Before
@Controller
@After
@RequestMapping
49. Method arguments that can be used in handler methods using the @RequestMapping annotation.
HttpServletRequest or HttpServleResponse
@RequestParam
@ModelAttribute
All of the mentioned
50. Annotation which represents cookie values of requests.
HttpServletRequest or HttpServleResponse
@RequestParam
@Cookie
None of the mentioned
Submit