100% found this document useful (2 votes)
347 views

Spring MCQ Quiz

The document provides a 20 question multiple choice quiz on Spring fundamentals. The quiz covers topics like the Spring license, who developed Spring, Spring scopes, integrating Struts with Spring, Spring beans, AOP in Spring, and Spring support for EJBs. It encourages taking the quiz to test knowledge of basic Spring concepts and finding more Spring interview questions on the provided website.

Uploaded by

sagar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
347 views

Spring MCQ Quiz

The document provides a 20 question multiple choice quiz on Spring fundamentals. The quiz covers topics like the Spring license, who developed Spring, Spring scopes, integrating Struts with Spring, Spring beans, AOP in Spring, and Spring support for EJBs. It encourages taking the quiz to test knowledge of basic Spring concepts and finding more Spring interview questions on the provided website.

Uploaded by

sagar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

By OnlineInterviewQuestions.

com
Spring MCQ Quiz

Take Spring Quiz To test your Knowledge


Below is the few Spring MCQ test that checks your basic knowledge of Spring. This Spring Test contains 20
Multiple Choice Questions with 4 options. You have to select the right answer to the question.

Also, Read the Best Spring interview questions.

Q1. Spring is licensed under

A. GNU
B. Apache License 2.0
C. GNU Lesser General Public License
D. Open source

Q2. Spring is developed by

A. Red Hat Software


B. Daniel Fernández
C. Apache
D. Pivotal Software

Q3. Which one of following is an alternative to Spring HibernateTemplate

A. Hibernate contextual sessions


B. HibernateContext
C. All of the mentioned
D. None of the mentioned

Q4. Which of following method is used to gracefully shutdown all the bean processes after
closing the spring container?

A. destory method
B. shutdownHook
C. session method
D. None of these

Q5. What is the scope of bean in portlet context?

A. session
B. global-session
C. request
D. prototype

Q6. Can we integrate Struts with Spring?

A. Yes
B. No

Q7. What is the default scope of the beans?

A. Prototype
B. session
C. Request
D. Singleton

Q8. What is bean in Spring?

A. A component
B. An Object
C. A class
D. A container

Q9. How to use <ref> in spring framework?

A. is used with bean id


B. is used with string values

Q10. Which method is used to process bean before initialization callback

A. postProcessAfterInitialization()
B. scope
C. postProcessBeforeInitialization()
D. it's own constructor

Q11. Which tag is also allowed by static field?

A. util:constant
B. list
C. constructor-args
D. set

Q12. AOP stands for?

A. Asynchronous oriented programming


B. Aspect Oriented Programming
C. All Oops Program

Q13. Which element is used to specify access attributes for bean's methods.

A. security:intercept
B. security:protect
C. security:intercept-security
D. none of above

Q14. How many types of method injection are available in spring?

A. 4
B. 2
C. 8
D. 1

Q15. In Spring Method that allows you to start a new transaction is called -

A. commit()
B. getTransaction()
C. rollback()
D. None of the above
Q16. Spring EJB Support Classes for Different Types of EJB

A. stateful session beans (SFSBs)


B. message-driven beans (MDBs)
C. stateless session beans (SLSBs)
D. AbstractStatefulSessionBean

Q17. Spring EJB Support Classes for Different Types of EJB

A. stateful session beans (SFSBs)


B. message-driven beans (MDBs)
C. stateless session beans (SLSBs)
D. AbstractStatefulSessionBean

Q18. To start the OpenEJB container, you first set environment variable

A. OPENEJB_HOME
B. Bashrc
C. EJB_HOME
D. EJB 2.x components

Q19. Annotation which decorates the PostageServiceBean is

A. @Autowire
B. @Interceptors
C. @Wire
D. @Mention

Q20. To declare a JNDI object reference in the Spring IoC container.

A. JndiObject
B. JndiObjectFactory
C. JndiObjectFactoryBean
D. JndiFactoryBean

Please Visit OnlineInterviewquestions.com to download more pdfs

You might also like