MCQOPTIONS
Saved Bookmarks
This section includes 177 Mcqs, each offering curated multiple-choice questions to sharpen your Technical Programming knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Which of the following class should replace ‘?’. |
| A. | org.springframework.webflow.security.SecurityFlow |
| B. | org.springframework.webflow.SecurityFlowExecutionListener |
| C. | org.springframework.webflow.security.SecurityFlowExecutionListener |
| D. | org.springframework.security.SecurityFlowExecutionListener |
| Answer» D. org.springframework.security.SecurityFlowExecutionListener | |
| 2. |
Group id to add spring security using Maven. |
| A. | org.springframework.secure |
| B. | org.springframework.security |
| C. | org.springframework.securedflow |
| D. | none of the mentioned |
| Answer» C. org.springframework.securedflow | |
| 3. |
JpaFlowExecutionListener and Hibernate Listener binds to flow scope. |
| A. | True |
| B. | False |
| C. | May be |
| D. | Can't say |
| Answer» B. False | |
| 4. |
To configure JPA vendor-specific information. |
| A. | JPA vendor adaptor |
| B. | Data source |
| C. | All of the mentioned |
| D. | None of the mentioned |
| Answer» D. None of the mentioned | |
| 5. |
Struts servlet used to handle web requests. |
| A. | ActionServlet |
| B. | Action |
| C. | ActionSupport |
| D. | ActionStruts |
| Answer» B. Action | |
| 6. |
To handle web requests in JSF. |
| A. | FacesServlet |
| B. | JavaFacesServlet |
| C. | Faces-Servlet |
| D. | None of the mentioned |
| Answer» B. JavaFacesServlet | |
| 7. |
Spring web flow supports integration with. |
| A. | JSF |
| B. | Hibernate |
| C. | JPA |
| D. | All of the mentioned |
| Answer» E. | |
| 8. |
Servers which listen on port 8080. |
| A. | Apache Tomcat 6.0 |
| B. | Jetty |
| C. | None of the mentioned |
| D. | All of the mentioned |
| Answer» E. | |
| 9. |
To integrate JPA with Spring Web flows. |
| A. | JpaFlowExecutionListener |
| B. | HibernateFlowExecutionListener |
| C. | All of the mentioned |
| D. | None of the mentioned |
| Answer» B. HibernateFlowExecutionListener | |
| 10. |
Variable to trigger the flow execution. |
| A. | ${flowExecutionUrl} |
| B. | ${exec.flow} |
| C. | ${flowExecutionUrl.match} |
| D. | none of the mentioned |
| Answer» B. ${exec.flow} | |
| 11. |
ACL(Access control list) consists of:- |
| A. | object identity |
| B. | access control entities |
| C. | none of the mentioned |
| D. | all of the mentioned |
| Answer» B. access control entities | |
| 12. |
Which attribute is used to access security element of web flow. |
| A. | attribute |
| B. | attributes-security |
| C. | attributes |
| D. | none of the mentioned |
| Answer» D. none of the mentioned | |
| 13. |
Tag which displays user’s Authentication object. |
| A. | security:tag |
| B. | security_Tag |
| C. | security:authentication |
| D. | none of the mentioned |
| Answer» D. none of the mentioned | |
| 14. |
Element used to specify access attributes for bean’s methods. |
| A. | security:protect |
| B. | security:intercept |
| C. | security:intercept-security |
| D. | none of the mentioned |
| Answer» B. security:intercept | |
| 15. |
Tag used to render view contents conditionally. |
| A. | security:authorize |
| B. | security:authority |
| C. | security:authenticate |
| D. | none of the mentioned |
| Answer» B. security:authority | |
| 16. |
Module that allows each domain to have it’s own access. |
| A. | access share list |
| B. | access common list |
| C. | access control list |
| D. | access list |
| Answer» D. access list | |
| 17. |
Remember-me support can be configured by:- |
| A. | remember-me |
| B. | remember-me-basic |
| C. | remember-basic |
| D. | none of the mentioned |
| Answer» B. remember-me-basic | |
| 18. |
Anonymous login services can be configured by:- |
| A. | anonymous-basic |
| B. | anonymous |
| C. | anonymous-target |
| D. | none of the mentioned |
| Answer» C. anonymous-target | |
| 19. |
You can specify the statements for querying a user’s information and authorities in the users-by-username-query and authorities-by-username-query attributes. |
| A. | True |
| B. | False |
| C. | May be |
| D. | Can't say |
| Answer» B. False | |
| 20. |
By default, Remember-me encodes the username, password, remember-me expiration time, and a private key as a token, and stores it as a cache in the user’s browser. |
| A. | True |
| B. | False |
| C. | May be |
| D. | Can't say |
| Answer» C. May be | |
| 21. |
Struts plugin used to integrate with spring. |
| A. | ContextLoaderListener |
| B. | ContextLoaderPlugin |
| C. | ContextLoaderListenerPlugin |
| D. | None of the mentioned |
| Answer» C. ContextLoaderListenerPlugin | |
| 22. |
You have to register a flow execution listener in the flow executor. |
| A. | True |
| B. | False |
| C. | May be |
| D. | Can't say |
| Answer» B. False | |
| 23. |
Default values of customized Username and authorities are anonymousUser and ROLE_ANONYMOUS respectively. |
| A. | True |
| B. | False |
| C. | May be |
| D. | Can't say |
| Answer» B. False | |
| 24. |
Attribute used to render enclosed content. |
| A. | ifGranted |
| B. | if_Granted |
| C. | ifAllGranted |
| D. | none of the mentioned |
| Answer» D. none of the mentioned | |
| 25. |
Integration of JSF with Spring Application Context. |
| A. | ContextLoaderListener |
| B. | DelegatingVariableResolver |
| C. | SpringBeanFacesELResolver |
| D. | All of the mentioned |
| Answer» E. | |
| 26. |
To integrate Hibernate with Spring Web flows. |
| A. | JpaFlowExecutionListener |
| B. | HibernateFlowExecutionListener |
| C. | All of the mentioned |
| D. | None of the mentioned |
| Answer» C. All of the mentioned | |
| 27. |
XML Based flow definitions can be validated by:- |
| A. | Spring Web Flow XSD |
| B. | Spring IDE |
| C. | SpringSource Tool Suite |
| D. | All of the mentioned |
| Answer» E. | |
| 28. |
Element to trigger an action for view module. |
| A. | on-render |
| B. | on-action |
| C. | on-trigger |
| D. | none of the mentioned |
| Answer» B. on-action | |
| 29. |
Component of JSF, for user’s input in a form. |
| A. | h:form |
| B. | h:commandButton |
| C. | h:outputText |
| D. | h:inputText |
| Answer» B. h:commandButton | |
| 30. |
Element which configures authentication services. |
| A. | authentication-provider |
| B. | authentication-manager |
| C. | all of the mentioned |
| D. | none of the mentioned |
| Answer» D. none of the mentioned | |
| 31. |
Class used to have full access to the Spring context’s life cycle machinery and dependency injection. |
| A. | DelegatingFilterProxy |
| B. | WebApplicationContextUtils.getRequiredWeb() |
| C. | WebApplicationUtils.getRequiredWebApplicationContext() |
| D. | None of the mentioned |
| Answer» B. WebApplicationContextUtils.getRequiredWeb() | |
| 32. |
Filter chain configured by Spring security, when web app security enabled. |
| A. | springSecurityFilterChain |
| B. | delegatingFilterProxy |
| C. | none of the mentioned |
| D. | all of the mentioned |
| Answer» B. delegatingFilterProxy | |
| 33. |
The http auto-config=”false” element automatically configures the basic security services that a typical web application needs. |
| A. | True |
| B. | False |
| C. | May be |
| D. | Can't say |
| Answer» C. May be | |
| 34. |
Element used to restrict access to a particular URL. |
| A. | restrict-url |
| B. | intercept-url |
| C. | intercept-restrict |
| D. | none of the mentioned |
| Answer» C. intercept-restrict | |
| 35. |
Way to secure web app’s URL. |
| A. | servlet filters |
| B. | refresh-check-delay |
| C. | http servlet filters |
| D. | none of the mentioned |
| Answer» B. refresh-check-delay | |
| 36. |
Spring can detect and refresh changes from the script source files |
| A. | True |
| B. | False |
| Answer» B. False | |
| 37. |
To quickly add a Spring Validator implementation to a Spring MVC Controller |
| A. | Use inline-script |
| B. | lang:inline-script |
| C. | All of the mentioned |
| D. | None of the mentioned |
| Answer» D. None of the mentioned | |
| 38. |
Dynamic-language-backed bean with some configurations |
| A. | Refreshable bean |
| B. | Beanshell |
| C. | Scripting Beans |
| D. | Inline Script |
| Answer» B. Beanshell | |
| 39. |
To prevent the characters in your script from conflicting with the reserved XML characters |
| A. | Use ![CDATA[…]] tag |
| B. | Use ![DATA[…]] tag |
| C. | Use ![CDATA(…)] tag |
| D. | None of the mentioned |
| Answer» B. Use ![DATA[…]] tag | |
| 40. |
Refresh checking feature is not applicable for an inline script |
| A. | True |
| B. | False |
| Answer» B. False | |
| 41. |
XML Element to define an inline script |
| A. | lang:inlinescript |
| B. | lang:inline_script |
| C. | lang:inline@script |
| D. | lang:inline-script |
| Answer» E. | |
| 42. |
Default value of refresh-check-delay attribute |
| A. | Zero |
| B. | Negative |
| C. | Positive |
| D. | None of the mentioned above |
| Answer» C. Positive | |
| 43. |
Spring IoC container refreshes the script periodically according to the interval period specified |
| A. | True |
| B. | False |
| Answer» B. False | |
| 44. |
Attribute used by Spring to refresh beans |
| A. | refresh-check-interval |
| B. | refresh-check-delay |
| C. | refresh-delay |
| D. | none of the mentioned |
| Answer» C. refresh-delay | |
| 45. |
BeanShell Library dependencies |
| A. | bsh-2.0b4.jar |
| B. | cglib-nodep-2.1_3.jar |
| C. | all of the mentioned |
| D. | none of the mentioned |
| Answer» D. none of the mentioned | |
| 46. |
Element which allows you to control the scope |
| A. | lang:jruby |
| B. | lang:language |
| C. | lang: bsh |
| D. | lang:groovy |
| Answer» C. lang: bsh | |
| 47. |
Class-based proxies are best way to advise scripted beans |
| A. | True |
| B. | False |
| Answer» C. | |
| 48. |
Attribute which specifies all the interfaces |
| A. | script-interfaces |
| B. | lang:bsh |
| C. | lang:script |
| D. | script:bsh |
| Answer» B. lang:bsh | |
| 49. |
Interface used to create additional features in groovy based beans |
| A. | GroovyObjectCustomizer |
| B. | GroovyBeanCustomizer |
| C. | GroovyCustomizer |
| D. | None of the mentioned |
| Answer» B. GroovyBeanCustomizer | |
| 50. |
Script’s location is specified by attribute |
| A. | script-source |
| B. | script-source |
| C. | script-annotation |
| D. | none of the mentioned |
| Answer» B. script-source | |