Controllers & Minimal APIs interview questions

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.

Take the free IT readiness check

or take a mock interview set up for this area

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

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
  1. A.Minimal API
  2. B.IActionResult
  3. C.MVC controller
  4. D.Results.Ok

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.IActionResult
  2. B.[ApiController] attribute
  3. C.Results.Ok
  4. D.Minimal API

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.Minimal API
  2. B.[ApiController] attribute
  3. C.MVC controller
  4. D.IActionResult

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.[ApiController] attribute
  2. B.Results.Ok
  3. C.MVC controller
  4. D.IActionResult

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

14. Which term means: "the minimal-API helper producing a 200 response, optionally carrying a serialized payload"?

Senior
  1. A.MVC controller
  2. B.Results.Ok
  3. C.Minimal API
  4. D.IActionResult

Answer + AI explanation with Pro

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

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.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers