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.
A.the response class returned directly when you need full control over body, status code, and headers as raw JSON
B.the decorator argument declaring the output schema used to validate, filter, and document what an endpoint returns
C.extra header values added by typing a Response parameter and assigning to its headers mapping inside the handler
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
A.JSONResponse
B.response_class
C.response_model_exclude_unset
D.response_model
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.response_model — the effect of declaring an output schema, where attributes not present in that schema are stripped from the returned data
B.response_model — the option that omits fields left at their defaults so only values explicitly provided appear in the output
C.response_model — the response class returned directly when you need full control over body, status code, and headers as raw JSON
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
A.the decorator argument declaring the output schema used to validate, filter, and document what an endpoint returns
B.the decorator argument that changes the default container for the body, for example to plain text or HTML instead of JSON
C.the effect of declaring an output schema, where attributes not present in that schema are stripped from the returned data
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
A.JSONResponse
B.Custom response headers
C.Output field filtering
D.response_model_exclude_unset
Answer + AI explanation with Pro
6. Which statement is correct?
Mid
A.Output field filtering — the option that omits fields left at their defaults so only values explicitly provided appear in the output
B.Output field filtering — the response class returned directly when you need full control over body, status code, and headers as raw JSON
C.Output field filtering — extra header values added by typing a Response parameter and assigning to its headers mapping inside the handler
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
A.the response class returned directly when you need full control over body, status code, and headers as raw JSON
B.the decorator argument declaring the output schema used to validate, filter, and document what an endpoint returns
C.the option that omits fields left at their defaults so only values explicitly provided appear in the output
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
A.response_model
B.response_model_exclude_unset
C.JSONResponse
D.Output field filtering
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.JSONResponse — the response class returned directly when you need full control over body, status code, and headers as raw JSON
B.JSONResponse — the decorator argument that changes the default container for the body, for example to plain text or HTML instead of JSON
C.JSONResponse — the decorator argument declaring the output schema used to validate, filter, and document what an endpoint returns
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
A.the option that omits fields left at their defaults so only values explicitly provided appear in the output
B.the response class returned directly when you need full control over body, status code, and headers as raw JSON
C.the effect of declaring an output schema, where attributes not present in that schema are stripped from the returned data
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
A.response_model_exclude_unset
B.Output field filtering
C.JSONResponse
D.Custom response headers
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.response_model_exclude_unset — the option that omits fields left at their defaults so only values explicitly provided appear in the output
B.response_model_exclude_unset — extra header values added by typing a Response parameter and assigning to its headers mapping inside the handler
C.response_model_exclude_unset — the decorator argument declaring the output schema used to validate, filter, and document what an endpoint returns
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
A.the decorator argument declaring the output schema used to validate, filter, and document what an endpoint returns
B.extra header values added by typing a Response parameter and assigning to its headers mapping inside the handler
C.the response class returned directly when you need full control over body, status code, and headers as raw JSON
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
A.response_model
B.response_model_exclude_unset
C.Custom response headers
D.response_class
Answer + AI explanation with Pro
15. Which statement is correct?
Mid
A.Custom response headers — the response class returned directly when you need full control over body, status code, and headers as raw JSON
B.Custom response headers — the option that omits fields left at their defaults so only values explicitly provided appear in the output
C.Custom response headers — the effect of declaring an output schema, where attributes not present in that schema are stripped from the returned data
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
A.the decorator argument declaring the output schema used to validate, filter, and document what an endpoint returns
B.the response class returned directly when you need full control over body, status code, and headers as raw JSON
C.the decorator argument that changes the default container for the body, for example to plain text or HTML instead of JSON
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
A.response_model_exclude_unset
B.JSONResponse
C.Custom response headers
D.response_class
Answer + AI explanation with Pro
18. Which statement is correct?
Senior
A.response_class — the decorator argument that changes the default container for the body, for example to plain text or HTML instead of JSON
B.response_class — the effect of declaring an output schema, where attributes not present in that schema are stripped from the returned data
C.response_class — extra header values added by typing a Response parameter and assigning to its headers mapping inside the handler
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.