🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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 →
  1. Q1. Why is "please reply only in JSON" in the prompt not enough for a production pipeline?
  2. Q2. What does a JSON schema guarantee about the extracted data?
  3. Q3. What does response.parsedoutput contain when using messages.parse with a Pydantic model?
  4. Q4. A resume has no CGPA. What should the system do?
  5. Q5. Where should rows that fail validation go?
  6. Q6. What does "additionalProperties": false do in a JSON schema?
  7. Q7. What does this print? (code)
  8. Q8. The schema says cgpa is a number. The model returns 84 for a CGPA out of 10. What catches this?
  9. Q9. Why does the lesson suggest asking for the source text of high-stakes fields?
  10. Q10. You need 40 fields from a complex document. What does the lesson recommend?