Question 1: CORE SPRING BOOT - @RestController Purpose
What is the primary purpose of the `@RestController` annotation in Spring Boot?
Question 2: CORE SPRING BOOT - @GetMapping vs @RequestMapping
Which statement is correct regarding `@GetMapping` and `@RequestMapping`?
Question 3: CORE SPRING BOOT - Code Snippet (@GetMapping)
What URL will return "Hello World" in the following code?
Question 4: CORE SPRING BOOT - Code Snippet (PathVariable)
What will be returned if you access `/api/user/42` in the following code?
Question 5: CORE SPRING BOOT - Query Parameters with @RequestParam
Which annotation is used to extract query parameters in a Spring Boot controller?
Question 6: CORE SPRING BOOT - Code Snippet (@RequestParam)
What will `/api/user?id=10` return in the following code?
Question 7: CORE SPRING BOOT - Default Values with @RequestParam
How can you set a default value for a query parameter?
Question 8: CORE SPRING BOOT - Code Snippet (@PostMapping)
Which HTTP method does the following handler respond to?
Question 9: CORE SPRING BOOT - Combining Path and Query Parameters
How do you correctly handle both path and query parameters in Spring Boot?
Question 10: CORE SPRING BOOT - Best Practices for REST Endpoints
Which of the following are considered best practices for REST controllers in Spring Boot?