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