SpringBoot Core

SpringBoot Core

Professional Development

15 Qs

quiz-placeholder

Similar activities

FUN 101 Week 10 Test Steering / Suspension

FUN 101 Week 10 Test Steering / Suspension

Professional Development

20 Qs

Chassis 4

Chassis 4

Professional Development

10 Qs

Quiz Of The Day

Quiz Of The Day

Professional Development

10 Qs

Brake System Y1

Brake System Y1

Professional Development

20 Qs

#IKR - I know right!

#IKR - I know right!

Professional Development

15 Qs

HAC101 Week 6 Quiz Expansion Valves

HAC101 Week 6 Quiz Expansion Valves

Professional Development

20 Qs

Formative Assessment

Formative Assessment

Professional Development

10 Qs

Quiz for Module3

Quiz for Module3

Professional Development

20 Qs

SpringBoot Core

SpringBoot Core

Assessment

Quiz

Professional Development

Professional Development

Practice Problem

Easy

Created by

PRAVEEN SHARMA

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the @SpringBootApplication annotation combine?

@Component, @Service, @Repository

@Configuration, @EnableAutoConfiguration, @ComponentScan

@RestController, @RequestMapping, @EnableJpaRepositories

@SpringBootTest, @EnableCaching, @EnableScheduling

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which annotation makes a class a candidate for auto-detection by Spring when using annotation-based configuration?

@Autowired

@Bean

@Component

@SpringBootApplication

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of @RestController annotation in Spring Boot?

To define a controller that returns view pages

To define a controller that returns JSON or XML directly

To perform REST API validation

To scan components

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which annotation is used to inject dependencies automatically in Spring?

@Bean

@Inject

@Autowired

@Component

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When there are multiple beans of the same type, which annotation helps to choose the right one to inject?

@Autowired

@Qualifier

@Component

@Value

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which annotation gives higher priority to a bean when multiple candidates are available for autowiring?

@Lazy

@Qualifier

@Primary

@Bean

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the @Lazy annotation do in Spring?

Prevents a bean from being autowired

Loads the bean immediately at application start

Delays the creation of bean until it is needed

Makes the bean thread-safe

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Professional Development