🧪 Spring MCQ Quiz Hub

Spring Mcq Set 3

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

1. Applying aspects to your target objects




2. What are the ways to declare an advice?




3. What are the ways to declare an advice?




4. What are the ways to declare an advice?




5. Special compiler used during weaving




6. Name of the process when targe classes are loaded into JVM




7. How to weave your classes using argument while compiling?




8. XML Element to include load-time weaver




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




10. Library to use AspectJ weaver




11. Objects created outside the container:-




12. How to inject Spring bean into domain objects




13. We can directly use Spring AOP for injection of beans




14. Which scope does @Configurable instantiated class looks for?




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




16. Scripting languages supported by Spring?




17. Scripting language based on Ruby




18. Dynamic Language for java platform to cope up with other languages




19. Lightweight java scripting language executing java fragments




20. In Ruby instance variable begins with




21. XML Element to declare a bean implemented by JRuby




22. XML element to specify the property values for scripting bean




23. XML Element to declare a bean implemented by Groovy




24. Script’s location is specified by attribute




25. Interface used to create additional features in groovy based beans




26. XML Element to declare a bean implemented by JRuby




27. Attribute which specifies all the interfaces




28. Class-based proxies are best way to advise scripted beans




29. Element which allows you to control the scope




30. BeanShell Library dependencies




31. Attribute used by Spring to refresh beans




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




33. Default value of refresh-check-delay attribute




34. XML Element to define an inline script




35. Refresh checking feature is not applicable for an inline script




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




37. Dynamic-language-backed bean with some configurations




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




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




40. Way to secure web app’s URL.




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




42. Servlet APIs to access security information of web application.




43. To load root application context at the start up.




44. To dispatch requests for web application.




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




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




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




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




49. Element used to restrict access to a particular URL.




50. Element which configures authentication services.