wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Spring and Spring boot

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is Spring Framework used for?

a)

Creating graphical user interfaces

b)

Managing database schemas

c)

Building and managing enterprise applications

d)

Generating test data

2.

What is the core container module in the Spring Framework?

a)

Spring Boot

b)

Spring Web

c)

Spring MVC

d)

Spring IoC

3.

What is the purpose of Spring Boot?

a)

To provide a lightweight container for Spring applications

b)

To simplify the configuration and deployment of Spring applications

c)

To enhance the performance of Spring applications

d)

To replace the Spring Framework entirely

4.

Which embedded web server is supported by default in Spring Boot?

a)

Tomcat

b)

GlassFish

c)

WildFly

d)

Jetty

5.

What is the purpose of the @Autowired annotation in Spring?

a)

It defines a new bean

b)

It injects dependencies automatically

c)

It configures database connections

d)

It specifies URL patterns

6.

Which file is commonly used for configuring Spring beans in XML format?

a)

applicationContext.xml

b)

spring-beans.xml

c)

beans-config.xml

d)

spring-context.xml

7.

Which Spring module provides support for transaction management?

a)

Spring AOP

b)

Spring Data

c)

Spring Transaction

d)

Spring ORM

8.

What is the primary role of the Spring Boot Starter modules?

a)

To create Spring beans

b)

To manage application properties

c)

To configure the database

d)

To simplify dependency management

9.

What does the term "Inversion of Control" (IoC) refer to in Spring?

a)

A control statement in programming logic

b)

A design pattern for creating classes

c)

The process of controlling hardware devices

d)

The management of object dependencies by a container

10.

Which of the following is a microframework built on top of the Spring Framework?

a)

Spring Data

b)

Spring Boot

c)

Spring Security

d)

Spring Cloud