Subdomain 1.1: Create effective prompts for business and technical tasks
1.A developer wants Claude to reliably follow a specific tone and structure when generating customer emails. Plain-language instructions alone haven't produced consistent results. What technique should they add to the prompt?
- A.Provide three to five diverse examples wrapped in <example> tags to distinguish them from instructions
- B.Provide one lengthy example that repeats the exact same pattern several times within a single block
- C.Describe the desired tone and structure in another paragraph without giving any example text
- D.List every possible edge case output in one long comma-separated sentence at the prompt's end
Show answer & explanation
Correct answer: A — Provide three to five diverse examples wrapped in <example> tags to distinguish them from instructions
- A. Correct. Multishot prompting with three to five relevant, diverse examples wrapped in <example> tags is one of the most reliable ways to steer output format, tone, and structure.
- B. A single repeated example lacks diversity and risks Claude picking up an unintended narrow pattern instead of generalizing the desired style.
- C. More prose description without concrete examples is exactly what has already been tried and has not produced consistent results.
- D. A compressed list of edge cases is not the same as worked examples and does not show Claude the actual tone and structure to imitate.