D1: Prompting Techniques
Claude Certified Associate – Foundations exam practice questions · 12 flashcards
Question
What is few-shot (example-based) prompting?
1 / 12
Tip: Space flips the card, ← / → navigate.
Show all 12 Prompting Techniques practice questions and answers
- What is few-shot (example-based) prompting?Including 1–3 examples of the desired output so Claude matches the format, tone and style.
- What makes examples effective?They are relevant to the real task, varied enough that Claude doesn't copy one pattern blindly, and clearly marked (e.g. in <example> tags).
- Why use XML tags such as <document> or <instructions>?They separate pasted material from instructions, so Claude doesn't confuse data with what you want done.
- What is role prompting?Giving Claude a role (e.g. 'act as an experienced HR policy reviewer') to set expertise, perspective and tone.
- When does asking Claude to 'think step by step' help?On analysis, reasoning and multi-step problems, where working through the logic first improves accuracy.
- Extended thinking vs asking Claude to think step by step?Extended thinking is a feature toggle that gives Claude more reasoning time. 'Think step by step' is a prompt instruction. Both help complex problems.
- How do you handle an ambiguous task?Ask Claude to list clarifying questions before it starts, so missing information surfaces early.
- What is a prompt template?A reusable prompt with fixed structure and fill-in slots. It keeps results consistent across people and runs.
- How do you improve answers from a long document?Ask Claude to first pull out the relevant quotes, then answer based on those quotes. This keeps the answer grounded.
- How do you control tone?Name the tone and audience ('warm but professional, for new customers') or paste a sample paragraph to match.
- Does the style of your prompt affect the output style?Yes. A prose prompt tends to get prose; a bullet-heavy prompt tends to get bullets.
- How do you get options to compare?Ask for a set number of distinct variants, e.g. '3 subject lines: formal, playful, urgent'.