Spring MCQs – Multiple Choice Questions and Answers – Part 4
Multiple choice questions and answers (MCQs) on Spring to prepare for exams, tests, and certifications. These questions are taken from a real written exam and some parts are taken from an interview. So you will find questions on basic techniques such as Spring Data, JPA, Spring MVC, XML, Hibernate, and more. This quiz will easily prepare anyone to pass their online test.
1. How many proxy types are there in the Spring framework?
A One
B Two
C Three
D Four
2. What are the features offered by Spring?
A Resource management
B Resource unwrapping
C Exception handling
D Transaction participation
E All the answers are true
[st_adsense]
3. Choose the correct option:
A The first version was written by Rod Johnson, released in October 2002.
B The framework was first released under the Apache 2.0 license in June 2003.
C The Spring 1.2.6 framework won a productivity award and an innovation award in 2006.
D All the answers are true
4. Choose the correct option:
A The Spring framework is an open source application.
B The Spring framework is a Java platform.
C The Spring framework is used by the .NET framework.
D All the answers are true
5. Spring is an MVC framework based on requests?
A Yes
B No
[st_adsense]
6. What does MVC mean for Spring?
A Model view Controller
B Middle view Controller
C Module view Controller
D None of the above
7. What does AOP mean to Spring?
A Aspect Oriented Programs
B Aspect Oriented Programming
C Aspect Oriente Programming
D None of the above
8. How to externalize constants from a Spring configuration file or a Spring annotation in the .properties file?
A Using the tag util:constant
B By declaring the post-processor of the ConstantPlaceholderConfigurer bean
C Using the tag contexte:property-placeholder
D Using the namespace c:
9. How many dynamic proxy types are available in Spring?
A One
B Two
C Three
D Four
[st_adsense]
10. Select the correct statement to reference a Spring configuration file inside the com.stackhowto.myapp package in the example below?
ApplicationContext context = new ClassPathXmlApplicationContext("classpath:/com.stackhowto.myapp.config.xml");
A The classpath: prefix can be omitted
B The name of the package with the dot is not well formatted
C The slash before com.stackhowto can be omitted
D All the answers are true