Skills101
← All practice quizzes

Quiz: Structured Outputs

5 questionsNo time limitPass: 60%+10 XP on first pass

Turn messy text into data your program can use: JSON schemas, the API's structured output mode, Pydantic models, validating results, and a resume-parsing case study — plus why "please reply in JSON" in the prompt is not enough.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    Why is "please reply only in JSON" in the prompt not enough for a production pipeline?

  2. Question 2

    What does a JSON schema guarantee about the extracted data?

  3. Question 3

    What does response.parsed_output contain when using messages.parse with a Pydantic model?

  4. Question 4

    A resume has no CGPA. What should the system do?

  5. Question 5

    Where should rows that fail validation go?