Refining a prompt after reviewing the output
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.
Understanding Refining a prompt after reviewing the output in VCE Software Development U3O1
What it does: The follow-up names the problem (missing comments) and says exactly where the comments should go. After comparing both versions, the follow-up says which parts to keep from each, so the next version combines the best of both. Naming the missing validation (range checking) and the limits gives the AI a clear target. 'Better' is too vague. A follow-up prompt is based on your review of the output. You must read and check the code first to know what to name. Naming the exact convention (snake_case) tells the AI precisely what to change in the next version.
Common mistakes: The follow-up prompt asked for snake_case names and the code uses snake_case. The comment should say 'use snake_case names', not camelCase. No number is both below 0 and above 120, so the loop never runs and the range check does nothing. It should use 'or' to catch invalid ages.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 178–193) and word search (Modules 168–193).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
follow-up promptFill in the Blanks
Spot the Error
Student with a class code? Join your class →