sagelearnai

Prompt Engineering: Concepts

Questions covered

  1. What makes a good prompt?
  2. Zero-shot vs few-shot prompting, and how do you choose examples?
  3. Explain chain-of-thought prompting and when it helps.
  4. What is self-consistency?
  5. How do you get reliable structured (JSON) output?
  6. What is prompt chaining?
  7. System prompt vs user prompt — what goes where?
  8. How do you evaluate and iterate on prompts systematically?
  9. What is prompt injection and how do you defend against it?
  10. What are common prompt anti-patterns?

This lesson is part of AI & ML Interview Prep. Unlock the full course to read it, take the quiz and track your progress.

See plans →

Last reviewed 2026-11-05.