Responses interview questions

18 Responses questions from the FastAPI 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 response_model?

Junior
  1. A.the response class returned directly when you need full control over body, status code, and headers as raw JSON
  2. B.the decorator argument declaring the output schema used to validate, filter, and document what an endpoint returns
  3. C.extra header values added by typing a Response parameter and assigning to its headers mapping inside the handler
  4. D.the effect of declaring an output schema, where attributes not present in that schema are stripped from the returned data

Answer + AI explanation with Pro

2. Which term means: "the decorator argument declaring the output schema used to validate, filter, and document what an endpoint returns"?

Junior
  1. A.JSONResponse
  2. B.response_class
  3. C.response_model_exclude_unset
  4. D.response_model

Answer + AI explanation with Pro

3. Which statement is correct?

Junior
  1. A.response_model — the effect of declaring an output schema, where attributes not present in that schema are stripped from the returned data
  2. B.response_model — the option that omits fields left at their defaults so only values explicitly provided appear in the output
  3. C.response_model — the response class returned directly when you need full control over body, status code, and headers as raw JSON
  4. D.response_model — the decorator argument declaring the output schema used to validate, filter, and document what an endpoint returns

Answer + AI explanation with Pro

4. What is Output field filtering?

Mid
  1. A.the decorator argument declaring the output schema used to validate, filter, and document what an endpoint returns
  2. B.the decorator argument that changes the default container for the body, for example to plain text or HTML instead of JSON
  3. C.the effect of declaring an output schema, where attributes not present in that schema are stripped from the returned data
  4. D.extra header values added by typing a Response parameter and assigning to its headers mapping inside the handler

Answer + AI explanation with Pro

5. Which term means: "the effect of declaring an output schema, where attributes not present in that schema are stripped from the returned data"?

Mid
  1. A.JSONResponse
  2. B.Custom response headers
  3. C.Output field filtering
  4. D.response_model_exclude_unset

Answer + AI explanation with Pro

6. Which statement is correct?

Mid
  1. A.Output field filtering — the option that omits fields left at their defaults so only values explicitly provided appear in the output
  2. B.Output field filtering — the response class returned directly when you need full control over body, status code, and headers as raw JSON
  3. C.Output field filtering — extra header values added by typing a Response parameter and assigning to its headers mapping inside the handler
  4. D.Output field filtering — the effect of declaring an output schema, where attributes not present in that schema are stripped from the returned data

Answer + AI explanation with Pro

7. What is JSONResponse?

Mid
  1. A.the response class returned directly when you need full control over body, status code, and headers as raw JSON
  2. B.the decorator argument declaring the output schema used to validate, filter, and document what an endpoint returns
  3. C.the option that omits fields left at their defaults so only values explicitly provided appear in the output
  4. D.the decorator argument that changes the default container for the body, for example to plain text or HTML instead of JSON

Answer + AI explanation with Pro

8. Which term means: "the response class returned directly when you need full control over body, status code, and headers as raw JSON"?

Mid
  1. A.response_model
  2. B.response_model_exclude_unset
  3. C.JSONResponse
  4. D.Output field filtering

Answer + AI explanation with Pro

9. Which statement is correct?

Mid
  1. A.JSONResponse — the response class returned directly when you need full control over body, status code, and headers as raw JSON
  2. B.JSONResponse — the decorator argument that changes the default container for the body, for example to plain text or HTML instead of JSON
  3. C.JSONResponse — the decorator argument declaring the output schema used to validate, filter, and document what an endpoint returns
  4. D.JSONResponse — the effect of declaring an output schema, where attributes not present in that schema are stripped from the returned data

Answer + AI explanation with Pro

10. What is response_model_exclude_unset?

Mid
  1. A.the option that omits fields left at their defaults so only values explicitly provided appear in the output
  2. B.the response class returned directly when you need full control over body, status code, and headers as raw JSON
  3. C.the effect of declaring an output schema, where attributes not present in that schema are stripped from the returned data
  4. D.the decorator argument that changes the default container for the body, for example to plain text or HTML instead of JSON

Answer + AI explanation with Pro

11. Which term means: "the option that omits fields left at their defaults so only values explicitly provided appear in the output"?

Mid
  1. A.response_model_exclude_unset
  2. B.Output field filtering
  3. C.JSONResponse
  4. D.Custom response headers

Answer + AI explanation with Pro

12. Which statement is correct?

Mid
  1. A.response_model_exclude_unset — the option that omits fields left at their defaults so only values explicitly provided appear in the output
  2. B.response_model_exclude_unset — extra header values added by typing a Response parameter and assigning to its headers mapping inside the handler
  3. C.response_model_exclude_unset — the decorator argument declaring the output schema used to validate, filter, and document what an endpoint returns
  4. D.response_model_exclude_unset — the response class returned directly when you need full control over body, status code, and headers as raw JSON

Answer + AI explanation with Pro

13. What is Custom response headers?

Mid
  1. A.the decorator argument declaring the output schema used to validate, filter, and document what an endpoint returns
  2. B.extra header values added by typing a Response parameter and assigning to its headers mapping inside the handler
  3. C.the response class returned directly when you need full control over body, status code, and headers as raw JSON
  4. D.the effect of declaring an output schema, where attributes not present in that schema are stripped from the returned data

Answer + AI explanation with Pro

14. Which term means: "extra header values added by typing a Response parameter and assigning to its headers mapping inside the handler"?

Mid
  1. A.response_model
  2. B.response_model_exclude_unset
  3. C.Custom response headers
  4. D.response_class

Answer + AI explanation with Pro

15. Which statement is correct?

Mid
  1. A.Custom response headers — the response class returned directly when you need full control over body, status code, and headers as raw JSON
  2. B.Custom response headers — the option that omits fields left at their defaults so only values explicitly provided appear in the output
  3. C.Custom response headers — the effect of declaring an output schema, where attributes not present in that schema are stripped from the returned data
  4. D.Custom response headers — extra header values added by typing a Response parameter and assigning to its headers mapping inside the handler

Answer + AI explanation with Pro

16. What is response_class?

Senior
  1. A.the decorator argument declaring the output schema used to validate, filter, and document what an endpoint returns
  2. B.the response class returned directly when you need full control over body, status code, and headers as raw JSON
  3. C.the decorator argument that changes the default container for the body, for example to plain text or HTML instead of JSON
  4. D.the effect of declaring an output schema, where attributes not present in that schema are stripped from the returned data

Answer + AI explanation with Pro

17. Which term means: "the decorator argument that changes the default container for the body, for example to plain text or HTML instead of JSON"?

Senior
  1. A.response_model_exclude_unset
  2. B.JSONResponse
  3. C.Custom response headers
  4. D.response_class

Answer + AI explanation with Pro

18. Which statement is correct?

Senior
  1. A.response_class — the decorator argument that changes the default container for the body, for example to plain text or HTML instead of JSON
  2. B.response_class — the effect of declaring an output schema, where attributes not present in that schema are stripped from the returned data
  3. C.response_class — extra header values added by typing a Response parameter and assigning to its headers mapping inside the handler
  4. D.response_class — the response class returned directly when you need full control over body, status code, and headers as raw JSON

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 Responses 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