• Tutorials
  • Courses
  • Tracks

Advanced Java Quiz Day 59

Last Updated :
Discuss
Comments

Question 1

What does REST stand for?


  • Representational State Transfer

  • Remote Execution Service Transfer

  • Resource State Transformation

  • Request State Transmission

Question 2

In REST, which HTTP method is typically used to retrieve data?


  • POST

  • PUT

  • GET

  • DELETE

Question 3

Which Spring Boot annotation is used to mark a class as a REST controller?

  • @Controller

  • @RestController

  • @Service

  • @Repository

Question 4

By default, which port does a Spring Boot application run on?

  • 8089

  • 4430

  • 8080

  • 3000

Question 5

Which annotation maps HTTP GET requests to a method in Spring Boot?

  • @PostMapping

  • @GetMapping

  • @RequestMapping(method = POST)

  • @PathVariable

Question 6

Which Spring Boot starter dependency is required for building REST APIs?

  • spring-boot-starter-jdbc

  • spring-boot-starter-web

  • spring-boot-starter-data-jpa

  • spring-boot-starter-test

Question 7

In REST, which HTTP status code indicates “Resource Not Found”?

  • 200

  • 400

  • 404

  • 500

Question 8

In Spring Boot, which file is used to configure application properties like port number?

  • pom.xml

  • application.properties

  • settings.gradle

  • application.yml

Question 9

Which tool is commonly used to test REST APIs?

  • Notepad

  • Postman

  • Eclipse

  • Excel

Question 10

What is the easiest way to create a Spring Boot REST API project?

  • Manually configuring Spring XML

  • Using Spring Initializr

  • Writing raw Servlets

  • Using JSP pages

There are 10 questions to complete.

Take a part in the ongoing discussion