Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1Use snake_case names for all variables | ANo specific request for names, validation or comments. Replace with 'Use camelCase names and add comments to each loop'. | |
| 2Add range checking so age must be 0 to 120 | BKeep version B's validation but use version A's variable names | |
| 3After reviewing output that has no comments, refine the prompt to ask for explanations of the code | CA follow-up prompt that asks the AI to add validation with clear limits | |
| 4Comparing two generated versions, then refining the prompt to keep the better features of both | DToo vague: it does not name the problem, so the AI has to guess what to change. Say what is wrong, e.g. 'Add range checking to the age input'. | |
| 5Prompt: Fix it, it is wrong | EAdd a comment above each function explaining what it does | |
| 6Prompt: Make the code better and nicer | FA follow-up prompt that asks the AI to apply a naming convention to the generated code |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
follow-up prompt — A new prompt sent after reviewing AI code that names the exact problem, e.g. 'Use snake_case names and add range checking', so the next version fixes it.prompt = "Use snake_case for all variables"followup = "Add range checking to age"followup = "Add a comment above each loop"if scoreB > scoreA:
best = "B"problem = "age accepts negative numbers"
followUp = "Fix this: " + problem