answer these questions:
In Spring-based Web application, __________ acts as the front controller for Spring-based Web applications. It provides a mechanism for request processing where actual work is performed by configurable, and delegated components. 
Group of answer choices

DispatcherServlet

Web Container

Web-Socket

Spring Bean
 
Flag question: Question 2
Question 225 pts
What does REST stand for?
Group of answer choices

Registered System Training

Representational State Transfer

Resistant Synchronization Test

Resourceful System Transfer
 
Flag question: Question 3
Question 325 pts
Tight coupling is not good at code testability. Loose coupling improves code testability.

True or False?

Group of answer choices

True

False
 
Flag question: Question 4
Question 425 pts
What is the prefix used in HTML for Thymeleaf?
Group of answer choices

th:value

c:

th:

TH:
 
Flag question: Question 5
Question 525 pts
___________ annotation is used to map a HTTP request method (GET or POST) to a specific class or method in the controller which will handle the respective request?
Group of answer choices

@RequestMapping

@RestController

@ResponseBody

@Mapping
 
Flag question: Question 6
Question 625 pts
Which annotation maps Web requests onto speciﬁc controller classes and/or handler methods?
Group of answer choices

@RequestMapping

@RequestParam

@RequestBody

@ResponseBody
 
Flag question: Question 7
Question 725 pts
Which of the following is not a part of the Spring framework modules?
Group of answer choices

Maven (Compile, Package, Deploy, etc.)

Data Access/ Integration (JDBC, ORM, etc.)

Web (Web, Servlets, etc.)

Core Container (Beans, Core, Context, etc.)
 
Flag question: Question 8
Question 825 pts
@ModelAttribute is referred to as data binding, and it saves us from having to deal with parsing and converting individual query parameters and form ﬁelds.

 

True or False?

Group of answer choices

True

False
 
Flag question: Question 9
Question 925 pts
Which of the following statements is valid based on the following code?

@Controller
public class HelloWorldController {

    @RequestMapping("/home") public String helloWorld() {
        String message = "Hello World, Spring boot!";
        System.out.println(message);
        return "index";
    }
}

Group of answer choices

The class will automatically be detected by the Spring Container as a part of the container's component scanning process, creating a bean deﬁnition and allowing instances to be dependency inject like any other Spring-managed component

The helloWorld() method has been annotated with @RequestMapping annotation, specifying that this method should handle web requests to the path "/home"

The helloWorld() method returns index.jsp or index.html indicating the view which should handle the response

all of the mentioned
 
Flag question: Question 10
Question 1025 pts
What is the default nature of the Beans defined in spring framework?
Group of answer choices

Initialized

Singleton

Abstract

Final
 
Flag question: Question 11
Question 1125 pts
Hibernate is a JPA implementation (provider), while Spring Data JPA is a JPA Data Access Abstraction that significantly reduces the amount of boilerplate code required to execute queries on the database.

True or False? 

Group of answer choices

True

False
 
Flag question: Question 12
Question 1225 pts
___________   annotation is used to store the model attribute in the session between requests. This annotation is used at controller class level or type-level annotation that declares session attributes used by a specific controller(handler).
Group of answer choices

@Attributes

@ModelAttribute

@SessionAttributes

@PathVariable
 
Flag question: Question 13
Question 1325 pts
Annotations work as metadata for classes and Spring uses annotations as an alternative to XML for declarative configuration. Is it true or false?
Group of answer choices

False

True
 
Flag question: Question 14
Question 1425 pts
While creating ﬁle upload form, form encrypt should be multipart/form-data, so that Spring web application knows that the request contains ﬁle data that needs to be processed.
Group of answer choices

True

False
 
Flag question: Question 15
Question 1525 pts
In Spring Data JPA, which of the following allows you to retrieve an entity?
Group of answer choices

ﬁnd..By

find...If

read..By

count..By

find..Via
 
Flag question: Question 16
Question 1625 pts
"Spring Data JPA does NOT allow you to create your own finder method".

True or False?

Group of answer choices

True

False
 
Flag question: Question 17
Question 1725 pts
Which of the following layers the @Controller annotation is used in?

 

Group of answer choices

Presentation layer

Business layer

Session layer

Service layer
 
Flag question: Question 18
Question 1825 pts
What is Thymeleaf? 
Group of answer choices

It is a template engine

It provides full Spring Framework integration

HTML templates written in Thymeleaf still look and work like HTML

All of the above
 
Flag question: Question 19
Question 1925 pts
What is dependency injection? 
Group of answer choices

It is one of the Spring modules

It makes unit testing harder

It makes code more tightly coupled

It is a design pattern that implements the Inversion of control (IoC) pattern for software applications.
 
Flag question: Question 20
Question 2025 pts
What is/are the way/s of defining Beans in Spring?
Group of answer choices

Component scanning - @Component annotated classes

@Bean annotated methods in the configuration classes

XML based configuration

All of the mentioned