Prompt Engineering Quiz
Test what you learned about writing prompts in this tutorial.
Quick Review
| Technique | What it does |
|---|---|
| Clear task and audience | Removes guessing |
| Role | Sets expertise, focus and tone |
| Context | Gives facts the AI cannot know |
| Few-shot examples | Shows the exact pattern you want |
| Step by step | Improves accuracy on logic and maths |
| Output format | Makes answers ready to use |
A complete prompt using several techniques:
Example
You are a patient maths teacher. A Class 8 student in Lahore
asks how to find 15% of Rs 2,400. Explain step by step in
3 short lines, then give the final answer in bold.And the check you should run on the answer:
Example
print(2400 * 15 / 100)360.0
Questions
Exercise
Which part of a prompt tells the AI who the answer is for?
Exercise
What does "You are a strict examiner" add to a prompt?
Exercise
You paste a long email and ask for a summary. What helps the AI separate the email from your instruction?
Exercise
You want reviews labelled in an exact format. What is usually most effective?
Exercise
For a maths word problem, which instruction improves accuracy?
Exercise
Your program needs to read the AI's answer. What should you ask for?
Exercise
What should a good debugging prompt include?
Exercise
Which is a responsible business use of prompts?
