Test yourself under real exam conditions: 50 timed questions, 60 on the clock, pass mark 70%%. Instant score with a full review of everything you got wrong. Free — no account needed.
Exam details
A prompt is the natural-language input—question, instruction, or context—a user provides to a language model to elicit a response. It frames the task and guides the model's behavior and output format.
The role pattern assigns the model a persona or function (e.g., 'You are a senior copyeditor'). It conditions tone, vocabulary, and reasoning style, often improving relevance for domain-specific tasks.
Few-shot prompting supplies a small number of input–output examples within the prompt before the new query, demonstrating the desired pattern, format, or reasoning so the model can generalize from the demonstrations.
Zero-shot prompting asks the model to perform a task using only the instructions in the prompt, with no examples. It relies on the model's pretrained knowledge to interpret and complete the request.
Chain-of-thought prompting encourages the model to produce intermediate reasoning steps before the final answer, improving accuracy on multi-step problems in arithmetic, logic, and commonsense tasks.