wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Spring Boot, Spring Framework

Total questions: 17

Worksheet time: 13mins

Name
Class
Date
1.

What do we call the objects handled by Spring?

a)
Sprouts
b)
Leaves
c)
Beans
d)
Twigs
2.

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

3.

What is the core container module in the Spring Framework?

a)

Spring Boot

b)

Spring Web

c)

Spring MVC

d)

Spring IoC

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 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

7.
What is an ORM?
a)

Object Relational Mapping

b)
Alternative to JDBC
8.

Which of the following is not a Spring Boot annotation?

a)

@Controller

b)

@RestController

c)

@Service

d)

@Data

9.

Database model classes in Spring Data JPA must be annotated with this annotation to map the actual table to the class.

a)

@Table

b)

@Entity

c)

@Column

d)

@Repository

10.

Primary key column of the model class must be decorated with this annotation?

a)

@Column

b)

@Id

c)

@PrimaryKey

d)

@OneToMany

11.

In using Spring Data JPA, which built-in method is used to fetch all records from a table?

a)

findAll()

b)

findbyID()

c)

getAll()

d)

None of the above

12.

An @Autowired annotation can be used to:

a)

include a repository in a controller

b)

include a service in a controller

c)

include a component or bean in a controller

d)

all of the above

13.

Study the following web controller

and fill up the missing annotations.

for

no. 1 (a)  

14.

Study the following web controller

and fill up the missing annotations.

for

no. 2 (a)  

15.

Study the following web controller

and fill up the missing annotations.

for (reading ,path: /student)

no. 3 (a)  

16.

Study the following web controller

and fill up the missing annotations.

for (save a student, path: /student)

no. 4 (a)  

17.

Study the following web controller

and fill up the missing annotations.

for (parse the requestboy)

no. 5 (a)