
Spring Framework Multiple Choice Questions
Authored by Manish Sharma undefined
Information Technology (IT)
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
100 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is the core component of the Spring Framework?
Spring AOP
Spring ORM
Spring Core Container
Spring Boot
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following annotations is used for dependency injection in Spring?
@Autowired
@Inject
@Resource
All of the above
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the primary use of the @Component annotation in Spring?
Used to define a Spring bean
Used to define a Spring controller
Used to define a Spring configuration class
Used to mark a service layer
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is used to define a Spring configuration class?
@Configuration
@Component
@Service
@Controller
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In Spring, what is the purpose of the @Bean annotation?
It defines a Spring configuration class
It defines a method that returns a Spring bean
It is used for autowiring beans
It is used to enable Spring AOP
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following are valid scopes of a Spring bean?
Singleton
Prototype
Request
All of the above
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the default scope of a Spring bean?
Singleton
Prototype
Request
Session
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?