Loading

Quipoin Menu

Learn • Practice • Grow

spring / Spring Framework
mcq
Direction: Choose the correct option

Q1.

What is the Spring Framework?
A. A JavaScript library
B. An application framework for Java
C. A database management system
D. A web server
Direction: Choose the correct option

Q2.

Which of the following is a core feature of Spring Framework?
A. Dependency Injection
B. Aspect-Oriented Programming
C. Both A and B
D. None of the above
Direction: Choose the correct option

Q3.

Which module provides dependency injection and IoC in Spring?
A. Spring MVC
B. Spring Core
C. Spring Data
D. Spring Security
Direction: Choose the correct option

Q4.

What is the purpose of Spring IoC container?
A. To manage the lifecycle of objects
B. To handle HTTP requests
C. To provide data access
D. To secure applications
Direction: Choose the correct option

Q5.

Which interface represents the IoC container in Spring?
A. BeanFactory
B. ApplicationContext
C. Both A and B
D. SpringContainer
Direction: Choose the correct option

Q6.

Which annotation is used to mark a class as a Spring component?
A. @Component
B. @Service
C. @Repository
D. All of the above
Direction: Choose the correct option

Q7.

What does the @Autowired annotation do?
A. It creates a new bean
B. It injects dependencies automatically
C. It destroys a bean
D. It configures the application
Direction: Choose the correct option

Q8.

Which design pattern is heavily used by Spring Core?
A. Factory Pattern
B. Singleton Pattern
C. Dependency Injection
D. All of the above
Direction: Choose the correct option

Q9.

What is the default scope of a Spring bean?
A. prototype
B. singleton
C. request
D. session
Direction: Choose the correct option

Q10.

Which file is traditionally used for XML-based Spring configuration?
A. application.properties
B. applicationContext.xml
C. spring-config.yml
D. beans.txt