Show List

Quiz - Spring Boot - 1

56%

Public Average Score
Select the right answer for below questions:

What is Spring Boot?
A Java-based framework for building web applications.
A Java-based framework for building mobile applications.
A Java-based framework for building desktop applications.
A Java-based framework for building microservices.
A Java-based framework for building microservices.

What is the purpose of the @SpringBootApplication annotation in Spring Boot?
To enable transaction management for the application.
To enable security for the application.
To define a bean in the Spring configuration file.
To enable auto-configuration for the application.
To enable auto-configuration for the application.

What is the purpose of the application.properties file in Spring Boot?
To define beans in the Spring configuration file.
To configure properties for the application.
To manage transactions in the application.
To define the database schema for the application.
To configure properties for the application.

How can you run a Spring Boot application from the command line?
By using the "java -jar" command.
By using the "run" command in the IDE.
By using the "start" command in the IDE.
By using the "spring run" command.
By using the "java -jar" command.

What is the purpose of the @RestController annotation in Spring Boot?
To define a RESTful web service in the application.
To define a bean in the Spring configuration file.
To manage transactions in the application.
To define a security configuration for the application.
To define a RESTful web service in the application.

What is the purpose of the @GetMapping annotation in Spring Boot?
To define a bean in the Spring configuration file.
To map HTTP GET requests to specific methods in a controller.
To manage transactions in the application.
To define a security configuration for the application.
To map HTTP GET requests to specific methods in a controller.

What is the purpose of the @PostMapping annotation in Spring Boot?
To define a bean in the Spring configuration file.
To map HTTP POST requests to specific methods in a controller.
To manage transactions in the application.
To define a security configuration for the application.
To map HTTP POST requests to specific methods in a controller.

What is the purpose of the @Value annotation in Spring Boot?
To inject a property value into a bean.
To define a bean in the Spring configuration file.
To manage transactions in the application.
To define a security configuration for the application.
To inject a property value into a bean.

What is the purpose of the @Service annotation in Spring Boot?
To define a bean in the Spring configuration file.
To manage transactions in the application.
To define a security configuration for the application.
To define a service layer in the application.
To define a service layer in the application.

What is the purpose of the @Repository annotation in Spring Boot?
To define a bean in the Spring configuration file.
To manage transactions in the application.
To define a security configuration for the application.
To define a data access layer in the application.
To define a data access layer in the application.

Submit
Retry
{"qz1-257466":"A Java-based framework for building microservices.","qz1-257467":"To enable auto-configuration for the application.","qz1-257468":"To configure properties for the application.","qz1-257469":"By using the \"java -jar\" command.","qz1-257470":"To define a RESTful web service in the application.","qz1-257471":"To map HTTP GET requests to specific methods in a controller.","qz1-257472":"To map HTTP POST requests to specific methods in a controller.","qz1-257473":"To inject a property value into a bean.","qz1-257474":"To define a service layer in the application.","qz1-257475":"To define a data access layer in the application."}

    Leave a Comment


  • captcha text