Session 1· 10 questions

End-of-session quiz

What you'll learn
  • Confirm you understand the core Session 1 concepts
  • Identify any gaps before moving to Session 5
  • Score 8+ out of 10 to move on confidently

10 questions covering everything from H1 to H11. Do not peek — if you miss one, go back to the exercise and re-read. You are ready for Session 5 when you can score 8+ without hints.

Part 1 — Fundamentals (H1–H3)

Knowledge Check
Where does the OpenAI client read your API key from by default?
Code Check
Which call style gives you the most reproducible output?
Knowledge Check
What belongs in a system message?

Part 2 — Memory (H4–H5)

Knowledge Check
If you call the API three times in a row, how many of them share memory by default?
Code Check
In a chatbot loop, what do you append to history AFTER each API call?

Part 3 — Vision and Generation (H6–H9)

Knowledge Check
What shape does "content" take when you send an image plus a question?
Code Check
What does .b64_json on an image-generation result contain?
Knowledge Check
Why use with_streaming_response for text-to-speech?

Part 4 — Integration (H10–H11)

Code Check
Which argparse feature lets one script handle summarize, ask-image, and speak?
Knowledge Check
In the story pipeline (H11), why send the full scene list on every image call?
Scored 8+ out of 10?
You are ready for Session 5 — Structured Outputs & Function Calling. If you missed more than 2, revisit the matching exercises (each answer explanation tells you where to look) before moving on.