D5: Zero-, Single- & Multi-Shot Prompting
Claude Certified Developer – Foundations exam practice questions · 10 flashcards
Question
What is zero-shot prompting?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Zero-, Single- & Multi-Shot Prompting practice questions and answers
- What is zero-shot prompting?Giving only instructions, no examples.
- What is single-shot (one-shot) prompting?Giving one example of the desired input/output.
- What is multi-shot (few-shot) prompting?Giving several examples to show the pattern.
- When is zero-shot enough?For simple, common tasks Claude already handles well.
- When do examples help most?For specific formats, tone, edge cases or classification labels.
- How many examples are typically recommended?About 3–5 diverse, relevant examples.
- Why make examples diverse?So Claude learns the pattern rather than copying one example's specifics.
- How should examples be marked?Wrap them in tags such as <example> to separate them from instructions.
- What's the cost of many examples?More input tokens per request (mitigate with prompt caching).
- Can examples cause problems?Yes, Claude may over-copy quirks of examples; check they reflect exactly what you want.