Controllers & Minimal APIs interview questions

15 real Controllers & Minimal APIs questions from the ASP.NET Core bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is MVC controller?

Junior
  1. A.a class deriving from a base type whose public action methods handle requests and return results
  2. B.a lightweight style that maps routes directly to lambda handlers without requiring a controller class
  3. C.an annotation that enables conventions like automatic 400 responses for invalid models and inference of binding sources
  4. D.the minimal-API helper producing a 200 response, optionally carrying a serialized payload
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.MVC controller — a class deriving from a base type whose public action methods handle requests and return results
  2. B.MVC controller — an annotation that enables conventions like automatic 400 responses for invalid models and inference of binding sources
  3. C.MVC controller — a return abstraction letting an action produce different HTTP outcomes such as Ok, NotFound, or BadRequest at runtime
  4. D.MVC controller — a lightweight style that maps routes directly to lambda handlers without requiring a controller class
Reveal the answer + AI explanation — free account

4. What is Minimal API?

Junior
  1. A.an annotation that enables conventions like automatic 400 responses for invalid models and inference of binding sources
  2. B.the minimal-API helper producing a 200 response, optionally carrying a serialized payload
  3. C.a return abstraction letting an action produce different HTTP outcomes such as Ok, NotFound, or BadRequest at runtime
  4. D.a lightweight style that maps routes directly to lambda handlers without requiring a controller class
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.Minimal API — a return abstraction letting an action produce different HTTP outcomes such as Ok, NotFound, or BadRequest at runtime
  2. B.Minimal API — a class deriving from a base type whose public action methods handle requests and return results
  3. C.Minimal API — a lightweight style that maps routes directly to lambda handlers without requiring a controller class
  4. D.Minimal API — the minimal-API helper producing a 200 response, optionally carrying a serialized payload
Reveal the answer + AI explanation — free account

7. What is [ApiController] attribute?

Mid
  1. A.the minimal-API helper producing a 200 response, optionally carrying a serialized payload
  2. B.an annotation that enables conventions like automatic 400 responses for invalid models and inference of binding sources
  3. C.a lightweight style that maps routes directly to lambda handlers without requiring a controller class
  4. D.a return abstraction letting an action produce different HTTP outcomes such as Ok, NotFound, or BadRequest at runtime
Reveal the answer + AI explanation — free account

8. Which term means: "an annotation that enables conventions like automatic 400 responses for invalid models and inference of binding sources"?

Mid
  1. A.Minimal API
  2. B.[ApiController] attribute
  3. C.MVC controller
  4. D.IActionResult
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.[ApiController] attribute — the minimal-API helper producing a 200 response, optionally carrying a serialized payload
  2. B.[ApiController] attribute — an annotation that enables conventions like automatic 400 responses for invalid models and inference of binding sources
  3. C.[ApiController] attribute — a lightweight style that maps routes directly to lambda handlers without requiring a controller class
  4. D.[ApiController] attribute — a class deriving from a base type whose public action methods handle requests and return results
Reveal the answer + AI explanation — free account

10. What is IActionResult?

Mid
  1. A.a lightweight style that maps routes directly to lambda handlers without requiring a controller class
  2. B.an annotation that enables conventions like automatic 400 responses for invalid models and inference of binding sources
  3. C.a class deriving from a base type whose public action methods handle requests and return results
  4. D.a return abstraction letting an action produce different HTTP outcomes such as Ok, NotFound, or BadRequest at runtime
Reveal the answer + AI explanation — free account

11. Which term means: "a return abstraction letting an action produce different HTTP outcomes such as Ok, NotFound, or BadRequest at runtime"?

Mid
  1. A.[ApiController] attribute
  2. B.Results.Ok
  3. C.MVC controller
  4. D.IActionResult
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.IActionResult — a class deriving from a base type whose public action methods handle requests and return results
  2. B.IActionResult — a return abstraction letting an action produce different HTTP outcomes such as Ok, NotFound, or BadRequest at runtime
  3. C.IActionResult — the minimal-API helper producing a 200 response, optionally carrying a serialized payload
  4. D.IActionResult — a lightweight style that maps routes directly to lambda handlers without requiring a controller class
Reveal the answer + AI explanation — free account

13. What is Results.Ok?

Senior
  1. A.a lightweight style that maps routes directly to lambda handlers without requiring a controller class
  2. B.the minimal-API helper producing a 200 response, optionally carrying a serialized payload
  3. C.an annotation that enables conventions like automatic 400 responses for invalid models and inference of binding sources
  4. D.a return abstraction letting an action produce different HTTP outcomes such as Ok, NotFound, or BadRequest at runtime
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Senior
  1. A.Results.Ok — a class deriving from a base type whose public action methods handle requests and return results
  2. B.Results.Ok — the minimal-API helper producing a 200 response, optionally carrying a serialized payload
  3. C.Results.Ok — a return abstraction letting an action produce different HTTP outcomes such as Ok, NotFound, or BadRequest at runtime
  4. D.Results.Ok — a lightweight style that maps routes directly to lambda handlers without requiring a controller class
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Controllers & Minimal APIs free