πŸ§ͺ Spring MCQ Quiz Hub

Spring Mcq Set 3

Choose a topic to test your knowledge and improve your Spring skills

Applying aspects to your target objects





βœ… Correct Answer: 2

What are the ways to declare an advice?





βœ… Correct Answer: 3

What are the ways to declare an advice?





βœ… Correct Answer: 3

What are the ways to declare an advice?





βœ… Correct Answer: 3

Special compiler used during weaving





βœ… Correct Answer: 3

Name of the process when targe classes are loaded into JVM





βœ… Correct Answer: 1

How to weave your classes using argument while compiling?





βœ… Correct Answer: 1

XML Element to include load-time weaver





βœ… Correct Answer: 3

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





βœ… Correct Answer: 1

Library to use AspectJ weaver





βœ… Correct Answer: 1

Objects created outside the container:-





βœ… Correct Answer: 1

How to inject Spring bean into domain objects





βœ… Correct Answer: 1

We can directly use Spring AOP for injection of beans





βœ… Correct Answer: 2

Which scope does @Configurable instantiated class looks for?





βœ… Correct Answer: 2

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





βœ… Correct Answer: 1

Scripting languages supported by Spring?





βœ… Correct Answer: 4

Scripting language based on Ruby





βœ… Correct Answer: 1

Dynamic Language for java platform to cope up with other languages





βœ… Correct Answer: 2

Lightweight java scripting language executing java fragments





βœ… Correct Answer: 3

In Ruby instance variable begins with





βœ… Correct Answer: 3

XML Element to declare a bean implemented by JRuby





βœ… Correct Answer: 1

XML element to specify the property values for scripting bean





βœ… Correct Answer: 1

XML Element to declare a bean implemented by Groovy





βœ… Correct Answer: 1

Script’s location is specified by attribute





βœ… Correct Answer: 1

Interface used to create additional features in groovy based beans





βœ… Correct Answer: 1

XML Element to declare a bean implemented by JRuby





βœ… Correct Answer: 3

Attribute which specifies all the interfaces





βœ… Correct Answer: 1

Class-based proxies are best way to advise scripted beans





βœ… Correct Answer: 2

Element which allows you to control the scope





βœ… Correct Answer: 2

BeanShell Library dependencies





βœ… Correct Answer: 3

Attribute used by Spring to refresh beans





βœ… Correct Answer: 2

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





βœ… Correct Answer: 2

Default value of refresh-check-delay attribute





βœ… Correct Answer: 2

XML Element to define an inline script





βœ… Correct Answer: 4

Refresh checking feature is not applicable for an inline script





βœ… Correct Answer: 1

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





βœ… Correct Answer: 1

Dynamic-language-backed bean with some configurations





βœ… Correct Answer: 1

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





βœ… Correct Answer: 3

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





βœ… Correct Answer: 1

Way to secure web app’s URL.





βœ… Correct Answer: 1

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





βœ… Correct Answer: 2

Servlet APIs to access security information of web application.





βœ… Correct Answer: 4

To load root application context at the start up.





βœ… Correct Answer: 3

To dispatch requests for web application.





βœ… Correct Answer: 1

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





βœ… Correct Answer: 1

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





βœ… Correct Answer: 1

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





βœ… Correct Answer: 1

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





βœ… Correct Answer: 2

Element used to restrict access to a particular URL.





βœ… Correct Answer: 2

Element which configures authentication services.





βœ… Correct Answer: 3