Spring/Spring Mcq Set 3 Sample Test,Sample questions

Question:
 Attribute which specifies all the interfaces

1.script-interfaces

2. lang:bsh

3.lang:script

4.script:bsh


Question:
 Default value of refresh-check-delay attribute

1. Zero

2.Negative

3.Positive

4.None of the mentioned above


Question:
 Element which allows you to control the scope

1. lang:jruby

2.lang:language

3. lang: bsh

4.lang:groovy


Question:
 Interface used to create additional features in groovy based beans

1.GroovyObjectCustomizer

2.GroovyBeanCustomizer

3. GroovyCustomizer

4.None of the mentioned


Question:
 Library to use AspectJ weaver

1. spring-instrument.jar

2.spring-introduction.jar

3. spring-aop.jar

4. spring-weave.jar


Question:
 To load root application context at the start up.

1. ContextListener

2.ContextLoader

3.ContextLoaderListener

4.ContextEventListener


Question:
 To prevent the characters in your script from conflicting with the reserved XML characters

1.Use ![CDATA[…]] tag

2.Use ![DATA[…]] tag

3.Use ![CDATA(…)] tag

4.none of the mentioned


Question:
 Way to secure web app’s URL.

1. servlet filters

2.refresh-check-delay

3. http servlet filters

4.none of the mentioned


Question:
 What are the ways to declare an advice?

1. pointcut-ref attribute

2. pointcut attribute

3. all of the mentioned

4.none of the mentioned


Question:
 What are the ways to declare an advice?

1. pointcut-ref attribute

2. pointcut attribute

3. all of the mentioned

4.none of the mentioned


Question:
 What are the ways to declare an advice?

1. pointcut-ref attribute

2. pointcut attribute

3. all of the mentioned

4.none of the mentioned


Question:
 XML Element to define an inline script

1. lang:inlinescript

2. lang:inline_script

3.lang:inline@script

4.lang:inline-script


Question:
 XML Element to include load-time weaver

1. aop:config

2. aop:auto-wire

3.context:load-time-weaver

4. aop:load-time-weaver


Question:
 XML element to specify the property values for scripting bean

1. lang:property

2. bean:property

3. script:property

4.none of the mentioned


Question:
Applying aspects to your target objects

1. AspectJ Annotation

2. Weaving

3.All of the mentioned

4.none of the mentioned


Question:
Attribute used by Spring to refresh beans

1.refresh-check-interval

2.refresh-check-delay

3.refresh-delay

4.none of the mentioned


Question:
BeanShell Library dependencies

1. bsh-2.0b4.jar

2.cglib-nodep-2.1_3.jar

3. all of the mentioned

4.none of the mentioned


Question:
By default, DelegatingFilterProxy delegates to a bean whose name is the same as its filter-name property.

1.True

2.False

3.error

4.none of the mentioned


Question:
Class-based proxies are best way to advise scripted beans

1.True

2. False

3.error

4.none of the mentioned


Question:
Dynamic Language for java platform to cope up with other languages

1.JRuby

2.Groovy

3.BeanShell

4.all of the mentioned


Question:
Dynamic-language-backed bean with some configurations

1.Refreshable bean

2.Beanshell

3.Scripting Beans

4. Inline Script


Question:
Element used to restrict access to a particular URL.

1. restrict-url

2. intercept-url

3. intercept-restrict

4.none of the mentioned


Question:
Element which configures authentication services.

1.authentication-provider

2.authentication-manager

3. all of the mentioned

4.none of the mentioned


Question:
Filter chain configured by Spring security, when web app security enabled.

1.springSecurityFilterChain

2. delegatingFilterProxy

3. none of the mentioned

4.all of the mentioned


Question:
How to inject Spring bean into domain objects

1.AOP

2.XML

3.AspectJ

4. Java Based


Question:
How to weave your classes using argument while compiling?

1. -javaagent:CLASSPATH

2. -javaagent:PackgePath

3. -javaweave:CLASSPATH

4.-javaweave:PackagePath


Question:
In Ruby instance variable begins with

1.#

2. *

3. @

4.none of the mentioned


Question:
Lightweight java scripting language executing java fragments

1. JRuby

2. Groovy

3.BeanShell

4.all of the mentioned


Question:
Name of the process when targe classes are loaded into JVM

1.load-time weaving

2. process-time weaving

3. load-process weaving

4. process-delivery weaving


Question:
Objects created outside the container:-

1. Domain Objects

2. User Objects

3.SpringVisitor Objects

4.none of the mentioned


Question:
Refresh checking feature is not applicable for an inline script

1.True

2. False

3.error

4.None of these


Question:
Script’s location is specified by attribute

1. script-source

2.xml-source

3. script-annotation

4.none of the mentioned


Question:
Scripting language based on Ruby

1. JRuby

2.Groovy

3.BeanShell

4.all of the mentioned


Question:
Scripting languages supported by Spring?

1. JRuby

2.Groovy

3.BeanShell

4.all of the mentioned


Question:
Servlet APIs to access security information of web application.

1.HttpServletRequest.isUserInRole()

2.HttpServletRequest.getUserPrincipal()

3.None of the mentioned

4. All of the mentioned


Question:
Servlet filter registered in web deployment descriptor, which filters request in spring application context.

1. DelegatingFilter

2. DelegatingFilterProxy

3.DelegatingProxy

4.none of the mentioned


Question:
Special compiler used during weaving

1. jvm

2.gcc

3. ajc

4.none of the mentioned


Question:
Spring can detect and refresh changes from the script source files.

1. True

2. False

3.error

4.None of these


Question:
Spring includes AnnotationBeanConfigurerAspect in its aspect library for configuring the dependencies of any objects

1.True

2. False

3.error

4.None of these


Question:
Spring IoC container refreshes the script periodically according to the interval period specified

1.True

2. False

3.error

4.None of these


Question:
The http auto-config=”false” element automatically configures the basic security services that a typical web application needs.

1.True

2.False

3.error

4.None of these


Question:
The responsibility of DelegatingFilterProxy is simply to delegate HTTP request filtering to a Spring bean that implements the interface:-

1. java.util.logging.Filter

2.java.util.logging.net

3.java.util.logging.FilterHttp

4.none of the mentioned


Question:
To dispatch requests for web application.

1.DispatcherServlet

2. ViewHandler

3.ViewResolver

4.none of the mentioned


Question:
To quickly add a Spring Validator implementation to a Spring MVC Controller

1. Use inline-script

2.lang:inline-script

3.All of the mentioned

4.None of the mentioned


Question:
We can directly use Spring AOP for injection of beans

1. True

2.False

3.error

4.None of these


Question:
Which scope does @Configurable instantiated class looks for?

1. Singleton

2.Prototype

3.None of the mentioned

4.all of the mentioned


Question:
XML Element to declare a bean implemented by Groovy

1.lang:groovy

2. lang:jruby

3. beanscript:jruby

4. script:jruby


Question:
XML Element to declare a bean implemented by JRuby

1. lang:jruby

2.aop:jruby

3.beanscript:jruby

4.script:jruby


Question:
XML Element to declare a bean implemented by JRuby

1.lang:bash

2.aop:bash

3. lang:bsh

4.script:bash


Question:
You also have to include suitable load-time weaver’s configuration in XML

1.True

2.False

3.error

4.none of the mentioned


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
Search
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!