Instructions

  • 1. Your final score will reflect your grasp of the concepts—approach each question with precision.
  • 2. Thoroughly review each solution before proceeding to ensure full understanding.
  • 3. Final results will be available after submission to provide insights into areas for further improvement.
  • 4. Maintain academic integrity—plagiarism undermines learning and professional growth.
  • 5. Once submitted, responses are final, so ensure you’re confident in your answers.
  • 6. These challenges are designed to test practical knowledge; apply your skills as you would in real-world scenarios.

All Problems

Question

Action

Which of the following is a key characteristic of REST architecture?

View

What HTTP method is typically used to create a new resource in RESTful services?

View

In REST, what does it mean for a service to be stateless?

View

Which annotation is used in Spring Boot to create a RESTful web service?

View

What is the purpose of the @RequestMapping annotation in Spring Boot?

View

Which of the following HTTP methods is considered idempotent in a RESTful service?

View

What is the default port on which a Spring Boot application runs?

View

In REST, which status code indicates that the request was successful and a resource was created?

View

Which of the following annotations is used to define a path variable in Spring Boot?

View

In Spring Boot, what is the role of the application.properties file?

View

Which of the following is a key characteristic of REST architecture?

Stateful services
Tight coupling between client and server
Stateless communication between client and server
Use of SOAP protocol

What HTTP method is typically used to create a new resource in RESTful services?

GET
POST
PUT
DELETE

In REST, what does it mean for a service to be stateless?

Server does not store any client context between requests
Server stores client data between requests
Client stores the server state
Only POST requests are allowed

Which annotation is used in Spring Boot to create a RESTful web service?

@Component
@Controller
@RestController
@Service

What is the purpose of the @RequestMapping annotation in Spring Boot?

To handle database connections
To map HTTP requests to controller methods
To create a database schema
To define the main application entry point

Which of the following HTTP methods is considered idempotent in a RESTful service?

POST
DELETE
PATCH
PUT

What is the default port on which a Spring Boot application runs?

3000
8080
5000
8000

In REST, which status code indicates that the request was successful and a resource was created?

200 OK
201 Created
404 Not Found
204 No Content

Which of the following annotations is used to define a path variable in Spring Boot?

@PathParam
@PathVariable
@RequestParam
@VariablePath

In Spring Boot, what is the role of the application.properties file?

To store dependencies for the project
To configure database connections, port, and other settings
To define REST endpoints
To run unit tests