AI-Assisted Coding · Module 1 practice

Verify, do not hope.

Eighteen questions and seven situations from the Module 1 workflow. Each answer cites the page of the notes or library it comes from.

Decide what you would do

The method that reads like the docs

An assistant’s scaffold calls a validation helper on your Pydantic model. The name fits the library’s style and the code looks clean. You haven’t run it yet.

What is the best next move?

Knowledge check

Check what stuck.

Choose the strongest answer from the supplied Module 1 material.

0/18 answered
01Why can AI-generated code look correct and still fail?
02An assistant answers a question about your library with complete confidence. What does the module say that confidence tells you?
03Task.validate_fields(data) appears in AI-generated Pydantic code. What is the right review question?
04A vague prompt for POST /tasks returns code that accepts JSON, creates a task and returns 200. Which failure mode is this?
05What does “production-aware” mean in Module 1?
06Generated code for a status update simply assigns whatever status it receives. What is missing?
07Which four parts make up the module’s prompt anatomy?
08You ask for an endpoint and don’t mention a database. The assistant adds one. What principle explains this?
09The endpoint the assistant wrote accepts a whitespace-only title. What does the module recommend?
10What does the notes’ example in a few-shot prompt control, besides the format?
11When does the module suggest using role, few-shot and constraint-based prompting together?
12In the AI interaction loop, which of these counts as the Test step?
13What does “run” mean when the loop is applied to requirements?
14Why does the Task Tracker exclude authentication, multi-tenancy, real-time sync and mobile?
15You start a new chat to continue yesterday’s Task Tracker work. What should you do first?
16Which task most deserves a deeper reasoning mode, by the module’s rule?
17Which ADR meets the module’s requirement?
18Which of these belongs in the Module 1 skeleton?