No student devices needed. Know more
30 questions
Spring is a
Web Development Framwork
Java Framework
MVC Framework
None of the Above
What is default HTML template engine in spring boot
JSP
Thymeleaf
HTML
Which of the annotation is not a Spring boot annotation?
@Controller
@RestController
@Service
@Data
What is the Annotation used to handle GET request
@Getmapping
@PostMapping
@PutMapping
@GetMapping
What is the Annotation used for Rest controller
@Restcontroller
@Controller
@RestController
@SpringBootApplication
What is the prefix used in HTML for Thymeleaf
TH:
c:
th:
th:value
What is the Minimum Java version need for Spring boot?
Java 10
Java 8
Java 9
Java 11
Which of the following can be used for Dependency managment in spring boot?
Maven
Spring
Gradle
Ant
Which of the following is used by Maven?
pom.xml
config.xml
META-INF
None of the Above
How will you include a dependency in a Project?
Copy & Paste the .Jar file inside src folder
Add dependency inside pom.xml file
What are all IDE can be used for Spring boot Development
Intelli J
Eclipse
Spring Tool Suite(STS)
All the Above.
What is an ORM?
Object Relational Mapper
Alternative to JDBC
Hibernate is a
Database connectivity Tool
ORM framework
Query Executer
None of the Above
What is the dependency need to create a Spring boot web Application
spring-boot-starter-web
spring-boot-starter-test
spring-boot-maven-plugin
spring-boot-html
What is the Starting point a Spring Boot Application
@SpringBootApplication
@Controller
@RestController
@Service
Database Objects must be annotated with
@Table
@Entity
@Column
@Repository
Primary Key of a Table Must be annotated with
@Column
@Id
@PrimaryKey
@OneToMany
@Autowired can be used for
Include a Repository in a Controller
Include a Service in a Controller
Include a Component in a Controller
All the Above
What is the Rightway to include a Repostitory into a Controller
Repository MyRepository = new Repository
@Autowired Repository myRepository
What is default Web server used in Spring boot Application?
Jetty
Apache Tomcat
JSP
In a Model Class a Columns are Annotated with
@Column
@Id
@JoinColumn
What is the latest version of Spring boot
Spring Boot 1.5
Spring Boot 2.1
Spring Boot 4.3
Spring Boot 5
Which is true for Thymeleaf?
Dynamic HTML creation
Bind Java Variables with HTML
All the Above
How to bind Java variable with Thymeleaf?
model.addAttribute();
@ModelAttribute
Thymeleaf.send()
None of the Above
How to get All the Data from Customer Table using CustomerRepository?
CustomerRepository.findAll()
Customer.findByID()
CustomerTable.getAll()
None of the Abobe
Which of the Following are true?
Methods annotated with @RestController return a String or JSON object
Methods annotated with @Controller returns HTML filename
Methods annotated with @RestController automatically converts Outputs with HTML
All the Above
<form method="POST" action="submit" /> </form>
Which Controller will be triggered the when the above form is Submitted?
@PostMapping("/submit")
@GetMapping("/submit")
@PostMapping("/submit")
@RequestMapping(method="GET",value="")
What is the default methods of a Repository?
findAll()
save()
saveAll()
All the Above
Which of the following is correct in Thymeleaf?
th:text="${customer}"
th:value="${customer.id}"
th:foreach="variable: ${customer}"
All the Above
Repository is used for?
Getting data from the Database
Connect HTML with Java
Store Vaiable
None of the Above
Explore all questions with a free account