Back to programming Quizzes

Spring Framework Quiz (Intermediate)

This intermediate Spring Framework quiz focuses on applied concepts, annotations, configuration, and real-world usage scenarios. Perfect for developers who know the basics and want to strengthen their Spring skills for interviews and production-ready applications.

15
Questions
~10
Minutes
10
Min Limit

Try a few sample questions

The question bank contains 47 questions. Your scored round uses up to 15 different questions. These samples are excluded from your round; try each one before opening its answer and explanation.

1. What is the main responsibility of ApplicationContext in Spring?

  1. Manage HTTP requests
  2. Manage bean lifecycle and dependencies
  3. Handle database queries
  4. Compile Java code
Reveal sample answer and explanation

Answer: Manage bean lifecycle and dependencies

ApplicationContext manages bean creation, configuration, and lifecycle.

2. Which interface is the parent of ApplicationContext?

  1. BeanFactory
  2. ResourceLoader
  3. Environment
  4. ContextLoader
Reveal sample answer and explanation

Answer: BeanFactory

ApplicationContext extends the BeanFactory interface.

3. Which annotation is used to load external configuration files?

  1. @PropertySource
  2. @Value
  3. @Configuration
  4. @Import
Reveal sample answer and explanation

Answer: @PropertySource

@PropertySource loads properties files into Spring context.