Generative AI & LLMs

Prompt Engineering

7 practice questions. Free questions open a full answer guide; the rest unlock with Pro.

  • What is the difference between zero-shot and few-shot prompting, and when would you add examples to a prompt? Junior level
  • What is chain-of-thought prompting, and when does asking a model to 'think step by step' actually help?Go Pro Junior level
  • You're standing up a production prompt for an LLM feature and the team keeps tweaking the wording and eyeballing a few outputs. How would you turn that into a disciplined prompt-engineering process you'd trust to ship?Go Pro Senior level
  • An LLM feature works well on simple inputs but gives inconsistent or wrong answers on harder, multi-step questions. How would you improve the prompt before reaching for a bigger model or fine-tuning?Go Pro Mid level
  • You're writing a prompt for an LLM feature that has to return a strict JSON object every time. How do you make the model reliably produce valid, schema-correct output?Go Pro Mid level
  • How would you write a prompt to get an LLM to return reliable, well-structured output that downstream code can parse?Go Pro Junior level
  • A downstream service needs strict JSON from your LLM step, but the model occasionally returns prose, trailing commentary, or a slightly-off schema. How do you make the output reliable, and where does prompting stop being the right tool?Go Pro Senior level
Want questions matched to your role? Paste a job title, job description, or CV for a personalized set, or go Pro to unlock the full bank.