Question: Review the following prompt: Write a creative story that uses personification, such as a story about a coffee pot that is always jittery, or a story about a smart calculator. What type of prompting is used in this example? What type of prompting is used in this example?
- Zero-shot
- One-shot
- Few-shot
- Chain-of-thought
Explanation
Few-shot prompting uses multiple examples inside a prompt to guide the model’s response. The examples show the desired creative pattern before the model generates a new output. This helps shape style, structure, and expected content more clearly than a prompt with no examples. The prompt includes more than one example, so it is not limited to a single demonstration.
Why the other options are incorrect
Zero-shot is incorrect because the prompt includes examples.
One-shot is incorrect because the prompt includes more than one example.
Chain-of-thought is incorrect because the prompt does not ask for step-by-step reasoning.
Source for verification
https://docs.cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/introduction-prompt-design
https://developers.google.com/machine-learning/glossary/generative
The answer(s) to the question is highlighted in the BOLD text above. You can also find more questions and answers related to the exams on the "Generative AI for Educators" page.