15 Controllers & Minimal APIs questions from the ASP.NET Core bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Free to start: the 2-minute IT readiness check — six questions and a result.
A.a class deriving from a base type whose public action methods handle requests and return results
B.a lightweight style that maps routes directly to lambda handlers without requiring a controller class
C.an annotation that enables conventions like automatic 400 responses for invalid models and inference of binding sources
D.the minimal-API helper producing a 200 response, optionally carrying a serialized payload
Answer + AI explanation with Pro
2. Which term means: "a class deriving from a base type whose public action methods handle requests and return results"?
Junior
A.Minimal API
B.IActionResult
C.MVC controller
D.Results.Ok
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.MVC controller — a class deriving from a base type whose public action methods handle requests and return results
B.MVC controller — an annotation that enables conventions like automatic 400 responses for invalid models and inference of binding sources
C.MVC controller — a return abstraction letting an action produce different HTTP outcomes such as Ok, NotFound, or BadRequest at runtime
D.MVC controller — a lightweight style that maps routes directly to lambda handlers without requiring a controller class
Answer + AI explanation with Pro
4. What is Minimal API?
Junior
A.an annotation that enables conventions like automatic 400 responses for invalid models and inference of binding sources
B.the minimal-API helper producing a 200 response, optionally carrying a serialized payload
C.a return abstraction letting an action produce different HTTP outcomes such as Ok, NotFound, or BadRequest at runtime
D.a lightweight style that maps routes directly to lambda handlers without requiring a controller class
Answer + AI explanation with Pro
5. Which term means: "a lightweight style that maps routes directly to lambda handlers without requiring a controller class"?
Junior
A.IActionResult
B.[ApiController] attribute
C.Results.Ok
D.Minimal API
Answer + AI explanation with Pro
6. Which statement is correct?
Junior
A.Minimal API — a return abstraction letting an action produce different HTTP outcomes such as Ok, NotFound, or BadRequest at runtime
B.Minimal API — a class deriving from a base type whose public action methods handle requests and return results
C.Minimal API — a lightweight style that maps routes directly to lambda handlers without requiring a controller class
D.Minimal API — the minimal-API helper producing a 200 response, optionally carrying a serialized payload
Answer + AI explanation with Pro
7. What is [ApiController] attribute?
Mid
A.the minimal-API helper producing a 200 response, optionally carrying a serialized payload
B.an annotation that enables conventions like automatic 400 responses for invalid models and inference of binding sources
C.a lightweight style that maps routes directly to lambda handlers without requiring a controller class
D.a return abstraction letting an action produce different HTTP outcomes such as Ok, NotFound, or BadRequest at runtime
Answer + AI explanation with Pro
8. Which term means: "an annotation that enables conventions like automatic 400 responses for invalid models and inference of binding sources"?
Mid
A.Minimal API
B.[ApiController] attribute
C.MVC controller
D.IActionResult
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.[ApiController] attribute — the minimal-API helper producing a 200 response, optionally carrying a serialized payload
B.[ApiController] attribute — an annotation that enables conventions like automatic 400 responses for invalid models and inference of binding sources
C.[ApiController] attribute — a lightweight style that maps routes directly to lambda handlers without requiring a controller class
D.[ApiController] attribute — a class deriving from a base type whose public action methods handle requests and return results
Answer + AI explanation with Pro
10. What is IActionResult?
Mid
A.a lightweight style that maps routes directly to lambda handlers without requiring a controller class
B.an annotation that enables conventions like automatic 400 responses for invalid models and inference of binding sources
C.a class deriving from a base type whose public action methods handle requests and return results
D.a return abstraction letting an action produce different HTTP outcomes such as Ok, NotFound, or BadRequest at runtime
Answer + AI explanation with Pro
11. Which term means: "a return abstraction letting an action produce different HTTP outcomes such as Ok, NotFound, or BadRequest at runtime"?
Mid
A.[ApiController] attribute
B.Results.Ok
C.MVC controller
D.IActionResult
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.IActionResult — a class deriving from a base type whose public action methods handle requests and return results
B.IActionResult — a return abstraction letting an action produce different HTTP outcomes such as Ok, NotFound, or BadRequest at runtime
C.IActionResult — the minimal-API helper producing a 200 response, optionally carrying a serialized payload
D.IActionResult — a lightweight style that maps routes directly to lambda handlers without requiring a controller class
Answer + AI explanation with Pro
13. What is Results.Ok?
Senior
A.a lightweight style that maps routes directly to lambda handlers without requiring a controller class
B.the minimal-API helper producing a 200 response, optionally carrying a serialized payload
C.an annotation that enables conventions like automatic 400 responses for invalid models and inference of binding sources
D.a return abstraction letting an action produce different HTTP outcomes such as Ok, NotFound, or BadRequest at runtime
Answer + AI explanation with Pro
14. Which term means: "the minimal-API helper producing a 200 response, optionally carrying a serialized payload"?
Senior
A.MVC controller
B.Results.Ok
C.Minimal API
D.IActionResult
Answer + AI explanation with Pro
15. Which statement is correct?
Senior
A.Results.Ok — a class deriving from a base type whose public action methods handle requests and return results
B.Results.Ok — the minimal-API helper producing a 200 response, optionally carrying a serialized payload
C.Results.Ok — a return abstraction letting an action produce different HTTP outcomes such as Ok, NotFound, or BadRequest at runtime
D.Results.Ok — a lightweight style that maps routes directly to lambda handlers without requiring a controller class
Answer + AI explanation with Pro
Free to start
Start with a free readiness check
Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Controllers & Minimal APIs question come with Pro.