Which prompt pattern is strongest for applying AI for Tests, Refactors and Code Review?
Practice this question from Practice Quiz 14: AI for Tests, Refactors and Code Review, with options and an explanation.
Question
Which prompt pattern is strongest for applying AI for Tests, Refactors and Code Review?
Option A
Paste private data without explaining the goal
Option B — Correct answer
State the task, context, constraints, and expected output format
Option C
Ask one vague question and accept the first answer
Option D
Request a long answer without saying who will use it
Explanation
A controlled prompt tells the model what to do, what context matters, and how the output should look.