- Spring Core Basics
- Spring - Home
- Spring - Overview
- Spring - Architecture
- Spring - Environment Setup
- Spring - Hello World Example
- Spring - IoC Containers
- Spring - Bean Definition
- Spring - Bean Scopes
- Spring - Bean Life Cycle
- Spring - Bean Post Processors
- Spring - Bean Definition Inheritance
- Spring - Dependency Injection
- Spring - Injecting Inner Beans
- Spring - Injecting Collection
- Spring - Beans Auto-Wiring
- Annotation Based Configuration
- Spring - Java Based Configuration
- Spring - Event Handling in Spring
- Spring - Custom Events in Spring
- Spring - AOP with Spring Framework
- Spring - JDBC Framework
- Spring - Transaction Management
- Spring - Web MVC Framework
- Spring - Logging with Log4J
- Spring Questions and Answers
- Spring - Questions and Answers
- Spring Useful Resources
- Spring - Quick Guide
- Spring - Useful Resources
- Spring - Discussion
Spring Online Quiz
Following quiz provides Multiple Choice Questions (MCQs) related to Spring Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.
Q 1 - Which are the modules of Web layer?
A - WebSocket, Servlet, Web, Portlet
Answer : A
Explanation
WebSocket, Servlet, Web, Portlet are the modules of Web layer.
Q 2 - Which are the IoC containers in Spring?
A - BeanFactory, ApplicationContext
B - BeanFactory, ApplicationContext, IocContextFactory
Answer : A
Explanation
BeanFactory, ApplicationContext classes acts as IoC containers in Spring.
Q 3 - What is true about <set> collection configuration elements?
A - This helps in wiring a list of values, allowing duplicates.
B - This helps in wiring a list of values but without any duplicates.
Answer : B
Explanation
<set> tag is used to wire a list of values, but without any duplicates.
Q 4 - What is bean autowiring?
B - Autowiring injects values in spring beans.
C - Autowiring injects one bean into another.
D - Autowiring helps in wiring a list of values, allowing duplicates.
Answer : A
Explanation
Using Bean autowiring, Spring resolve collaborators (other beans) for your bean by inspecting the contents of the BeanFactory without using <constructor-arg> and <property> elements..
Q 5 - What is Join point?
A - This represents a point in your application which joins two objects.
B - This represents a point in your object where you join values.
C - This represents a point in your object where you join injected values.
D - This represents a point in your application where you can plug-in AOP aspect.
Answer : D
Explanation
Join point represents a point in your application where you can plug-in AOP aspect.
Q 6 - Which of the following aspect implementation spring supports?
A - XML Schema based aspect implementation
Answer : C
Explanation
Spring supports both XML Schema based and @AspectJ based aspect implementation.
Q 7 - Which of the following database is not supported using jdbcTemplate?
Answer : C
Explanation
NoSql is not supported using jdbcTemplate.
Q 8 - What stands true for spring framework?
Answer : A
Explanation
Spring framework is a light weight framework.
Answer : B
Explanation
Id is not a mandatory attribute in beans configuration file.
Q 10 - What BeanPostProcessor does?
A - It processes beans once a bean is initialized.
Answer : B
Explanation
BeanPostProcessor defines callback methods that you can implement to provide your own instantiation logic, dependency-resolution logic etc.
To Continue Learning Please Login
Login with Google