Spring/Spring Mcq Set 4 Sample Test,Sample questions

Question:
 ACEs(Access control entries) core consists of:-

1.Permissions

2.Security Identity

3.All of the mentioned

4.none of the mentioned


Question:
 Attribute used to display custom login page.

1. login-url

2.custom-login

3.login-custom

4. custom-login


Question:
 Integration of JSF with Spring Application Context.

1.ContextLoaderListener

2.DelegatingVariableResolver

3.SpringBeanFacesELResolver

4.all of the mentioned


Question:
 JSP technology is also used to handle security of JSP views.

1. True

2.False

3.error

4.None of these


Question:
 Module that allows each domain to have it’s own access.

1. access share list

2. access common list

3. access control list

4.access list


Question:
 Servlet listener which loads application context.

1. Security:intercept-methods

2.global-method-security

3.ContextLoaderListener

4.none of the mentioned


Question:
 Session scope attribute to display error message.

1.SPRING_SECURITY_FIRST_EXCEPTION

2.SPRING_SECURITY_LAST_EXCEPTION

3.SPRING_SECURITY_EXCEPTION

4.SPRING_SECURITY_LAST_ERROR


Question:
 Tag used to integrate Spring with DWR.

1.dwr:integrate

2.dwr:remote

3. dwr:action

4. None of the mentioned


Question:
 Tag used to provide result of web requests and is read only.

1. h:form

2.h:commandButton

3.h:outputText

4.h:inputText


Question:
 Which of the following way to provide authenticity of users is/are supported by Spring Security?

1.Authenticating against a database

2.LDAP repository

3.All of the mentioned

4.none of the mentioned


Question:
@Secured annotation is used to secure methods implemented by beans.

1. True

2.False

3.error

4.None of these


Question:
ACL(Access control list) consists of:-

1.object identity

2.access control entities

3.none of the mentioned

4.all of the mentioned


Question:
Action URL can be customized using form-login.

1.True

2.False

3.error

4.None of these


Question:
ActionSupport class provides a method to access spring application context.

1.getWebApplicationContext()

2.getWebApplication()

3.getApplicationContext()

4.contextEventListener()


Question:
Anonymous login services can be configured by:-

1.anonymous-basic

2. anonymous

3.anonymous-target

4.none of the mentioned


Question:
Attribute used to look up and delegate a particular root bean.

1.filter

2. filter-name

3. filtername

4.none of the mentioned


Question:
Attribute used to render enclosed content.

1.ifGranted

2.if_Granted

3. ifAllGranted

4.none of the mentioned


Question:
Attribute used to specify custom access decision manager.

1.access-decision-manager-ref

2.access-decision-ref

3.access-decision

4.none of the mentioned


Question:
Attribute which specifies redirection URL on login error.

1. authentication-failure-url

2.authentication-failure_login-url

3.authentication-login-url

4. None of the mentioned


Question:
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.

1. True

2. False

3.error

4.None of these


Question:
Class used to have full access to the Spring context’s life cycle machinery and dependency injection.

1. DelegatingFilterProxy

2.WebApplicationContextUtils.getRequiredWeb()

3.WebApplicationUtils.getRequiredWebApplicationContext()

4.None of the mentioned


Question:
Component of JSF, for user’s input in a form.

1. h:form

2. h:commandButton

3.h:outputText

4.h:inputText


Question:
Connection of database with Apache derby server requires.

1.Derby client.jar

2.Spring JDBC support

3.None of the mentioned

4. All of the mentioned


Question:
Default values of customized Username and authorities are anonymousUser and ROLE_ANONYMOUS respectively.

1.True

2.False

3.error

4.None of these


Question:
Element used to secure methods.

1.security:intercept-methods

2.global-method-security

3.all of the mentioned

4.none of the mentioned


Question:
Element used to specify access attributes for bean’s methods.

1. security:protect

2. security:intercept

3.security:intercept-security

4. None of the mentioned


Question:
Element which defines user details.

1.user-service

2. user-details

3.user-requirements

4.user-servicerequirements


Question:
Element which redirects to a specific URL on logout.

1.logout-success

2. logout-success_url

3.logout-url

4. logout-success-url


Question:
Form-based login is configured by:-

1.servlet filters

2.refresh-check-delay

3. form-login

4.none of the mentioned


Question:
HTTP Basic authentication support is configured by:-

1. logout

2. http-basic

3.http-basicauth

4.none of the mentioned


Question:
In order to leverage Spring application context machinery and configuration.

1. HttpRequestHandlerJNDI

2.HttpRequestHandlerServlet

3.HttpRequestHandler

4.none of the mentioned


Question:
Interface implemented by object instantiated by HttpRequestHandlerServlet.

1. HttpRequestHandlerJNDI

2. HttpRequestHandlerServlet

3. HttpRequestHandler

4.none of the mentioned


Question:
Interfaces that defines operation of an ACL service.

1. AclService

2.MutableAclService

3.All of the mentioned

4.None of the mentioned


Question:
Logout service is configured by:-

1.logout

2. login

3.logout-basic

4.logout_basic


Question:
Method to retrieve Spring Applicationcontext.

1.WebApplicationContextUtils.getRequiredWebApplicationContext()

2.WebApplicationContextUtils.getRequiredWeb()

3.WebApplicationUtils.getRequiredWebApplicationContext()

4.None of the mentioned


Question:
Remember-me support can be configured by:-

1. remember-me

2.remember-me-basic

3.remember-basic

4.none of the mentioned


Question:
SID(Security Identity) associates with permission using.

1.principal(PrincipalSid)

2.authority (GrantedAuthoritySid)

3.all of the mentioned

4. none of the mentioned


Question:
Spring Security algorithms to secure password.

1.MD5

2.SHA

3.All of the mentioned

4.none of the mentioned


Question:
Spring supports web flows by:-

1. Java

2. XML

3.All of the mentioned

4.none of the mentioned


Question:
Struts plugin used to integrate with spring.

1.ContextLoaderListener

2.ContextLoaderPlugin

3.ContextLoaderListenerPlugin

4.none of the mentioned


Question:
Struts servlet used to handle web requests.

1. ActionServlet

2. Action

3.ActionSupport

4.ActionStruts


Question:
Tag used to render view contents conditionally.

1.security:authorize

2. security:authority

3. security:authenticate

4. None of the mentioned


Question:
Tag which displays user’s Authentication object.

1.security:tag

2. security_Tag

3. security:authentication

4.none of the mentioned


Question:
Tag which renders the granted authorities one by one.

1. c:for

2.c:forEach

3. c:doWhile

4.c:while


Question:
Tag which triggers server side requests.

1. h:form

2.h:commandButton

3.h:outputText

4. h:inputText


Question:
The basic security services registered and configured by Spring Security.

1.Form-based login service

2. Logout Service

3.HTTP Basic authentication.

4.all of the mentioned


Question:
To handle web requests in JSF.

1.FacesServlet

2.JavaFacesServlet

3.Faces-Servlet

4.none of the mentioned


Question:
Utility to calculate MD5 digests for your password.

1. CheckSum

2.BeanShell

3.Jacksum

4.none of the mentioned


Question:
Which of the following is/are part of BasePermission class:-

1.CREATE

2.READ/WRITE

3.DELETE

4.all of the mentioned


Question:
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.

1.True

2.False

3.error

4.None of these


More MCQS

  1. Spring Mcq Set 1
  2. Spring Mcq Set 2
  3. Spring Mcq Set 3
  4. Spring Mcq Set 4
  5. Spring Mcq Set 5
  6. Spring Mcq Set 6
  7. Spring Mcq Set 7
  8. Spring Mcq Set 8
  9. Spring Mcq Set 9
  10. Spring Mcq Set 10
  11. Spring Mcq Set 11
  12. Spring Mcq Set 12
  13. Spring Mcq Set 13
  14. Spring Mcq Set 14
  15. Spring Mcq Set 15
  16. Spring Mcq Set 16
  17. Spring Mcq Set 17
  18. Spring Mcq Set 18
  19. Spring Mcq Set 19
  20. Spring Mcq Questions
Learn Spring Mcq Set 4,Learn Spring Objetive choice questions and answers,Spring Multiple choice questions and answers,Spring objective, Spring questions , Spring answers,Spring MCQs questions and answer
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!