← All topics
Quiz: Structured Outputs: questions with answers
10 questions, each with the answer and a short explanation.
Take the timed quiz + get a certificate →- Q1. Why is "please reply only in JSON" in the prompt not enough for a production pipeline?
- Q2. What does a JSON schema guarantee about the extracted data?
- Q3. What does response.parsedoutput contain when using messages.parse with a Pydantic model?
- Q4. A resume has no CGPA. What should the system do?
- Q5. Where should rows that fail validation go?
- Q6. What does "additionalProperties": false do in a JSON schema?
- Q7. What does this print? (code)
- Q8. The schema says cgpa is a number. The model returns 84 for a CGPA out of 10. What catches this?
- Q9. Why does the lesson suggest asking for the source text of high-stakes fields?
- Q10. You need 40 fields from a complex document. What does the lesson recommend?