Prompt Engineering — Practice quiz

Untimed. Answers are graded when you submit, with explanations and spaced-repetition scheduling.

  1. Question 1easy

    What is the core principle of effective prompting?

  2. Question 2easy

    What does 'few-shot' prompting mean?

  3. Question 3medium

    When is chain-of-thought ('think step by step') most useful?

  4. Question 4medium

    You need output that code will parse. Prompt-specified format vs. schema-enforced structured output — which is stronger?

  5. Question 5hard

    What is prompt injection?

  6. Question 6medium

    What's a good first-line defense when a prompt must include untrusted input?

  7. Question 7medium

    What's the right way to iterate on a prompt?

  8. Question 8hard

    A prompt heavily tuned for an older model behaves oddly (over-triggers a tool) on a newer model. Why?

  9. Question 9medium

    For teaching a model a specific output style, which tends to work best?

  10. Question 10medium

    Which elements make a prompt more specific and reliable? (Select all that apply)

    Select all that apply.

  11. Question 11easy

    What is the role/persona (system prompt) mainly for?

  12. Question 12hard

    Why keep a small set of input→expected examples while developing a prompt?

  13. Question 13medium

    Term (hyphenated or not) for including example input→output pairs in a prompt to teach format/behavior.

  14. Question 14hard

    Two words: the attack where untrusted input carries instructions that hijack the model (e.g. 'ignore previous instructions').

0 / 14 answered