Skip to main content
AI Prompt Engineering Quiz

Prompt Engineering Quiz

The quiz is based on 26 prompt principles. The principles plus some secret sauce is what we used to create the open-source version of Prompt Engineer Pro on HuggingFace.
 
1: Communication Clarity

1. Be straightforward
2. Consider your audience
3. Follow guidelines
4. Use affirmative directives
9. Set expectations
10. Define consequences
11. Write naturally
 

2: Structuring Input

8. Organization
7. Present examples
17. Use separators 
20. Prime output
21. Detail responses
22. Refine text

3: Supporting Deep Learning

14. Encourage interactions
15. Test understanding
16. Assign roles
19. Mix approaches

4: Addressing Special Topics

18. Repeat ideas
23. Create code scripts
24. Continue text
25. Specify requirements
26. Match samples

1. Which principle encourages the use of affirmative directives such as 'do', while avoiding negative language like 'don't'?
a) Principle 1
b) Principle 2
c) Principle 3
d) Principle 4

Answer: d) Principle 4

2. Which principle recommends breaking down complex tasks into a sequence of simpler prompts in an interactive conversation?
a) Principle 1
b) Principle 2
c) Principle 3
d) Principle 5

Answer: c) Principle 3

3. Which principle instructs users to repeat a specific word or phrase multiple times within a prompt?
a) Principle 1
b) Principle 2
c) Principle 3
d) Principle 18

Answer: d) Principle 18

4. Which principle advises incorporating the following phrase: 'Ensure that your answer is unbiased and avoids relying on stereotypes.'
a) Principle 1
b) Principle 2
c) Principle 3
d) Principle 13

Answer: d) Principle 13

5. Which principle encourages allowing the model to elicit precise details and requirements from the user by asking questions until it has enough information to provide the needed output?
a) Principle 1
b) Principle 2
c) Principle 3
d) Principle 14

Answer: d) Principle 14

6. Which principle suggests breaking down complex coding prompts that may be in different files into a sequence of simpler prompts in an interactive conversation?
a) Principle 1
b) Principle 2
c) Principle 3
d) Principle 23

Answer: d) Principle 23

7. Which principle advises against using politeness phrases like 'please', 'if you don't mind', 'thank you', 'I would like to', etc.?
a) Principle 1
b) Principle 2
c) Principle 3
d) Principle 12

Answer: d) Principle 12

8. Which principle suggests structuring prompts to guide the model step-by-step through a task incrementally?
a) Principle 1
b) Principle 2
c) Principle 3
d) Principle 15

Answer: d) Principle 15

9. Which principle advises using delimiters to separate instructions, examples, questions, context, and input data in prompts?
a) Principle 1
b) Principle 2
c) Principle 3
d) Principle 17

Answer: d) Principle 17

10. Which principle recommends using the phrase 'Answer a question given in a natural, human-like manner' in prompts?
a) Principle 1
b) Principle 2
c) Principle 3
d) Principle 11

Answer: d) Principle 11

11. Which principle advises using leading words like 'writing', 'think', etc. in prompts?
a) Principle 1
b) Principle 2
c) Principle 3
d) Principle 12

Answer: d) Principle 12

12. Which principle suggests using the phrase 'You will be penalized' in prompts?
a) Principle 1
b) Principle 2
c) Principle 3
d) Principle 10

Answer: d) Principle 10

13. Which principle advises incorporating the following phrase: 'Your task is...' in prompts?
a) Principle 1
b) Principle 2
c) Principle 3
d) Principle 9

Answer: d) Principle 9

14. Which principle suggests using the phrase 'From now on, I would like you to ask me questions to...'. in prompts?
a) Principle 1
b) Principle 2
c) Principle 3
d) Principle 14

Answer: d) Principle 14

15. Which principle advises using the phrase 'Write a detailed [essay/text/paragraph] for me on [topic] in detail by adding all the information necessary.' in prompts?
a) Principle 1
b) Principle 2
c) Principle 3
d) Principle 21

Answer: d) Principle 21

16. Which principle suggests using output primers, which involve concluding your prompt with the beginning of the desired output?
a) Principle 1
b) Principle 2
c) Principle 3
d) Principle 20

Answer: d) Principle 20

17. Which principle advises using the phrase 'Use the same language based on the provided paragraph[/title/text/essay/answer]' in prompts?
a) Principle 1
b) Principle 2
c) Principle 3
d) Principle 26

Answer: d) Principle 26

18. Which principle advises using the phrase 'Write any text, such as an essay or paragraph, that is intended to be similar to a provided sample.' in prompts?
a) Principle 1
b) Principle 2
c) Principle 3
d) Principle 26

Answer: d) Principle 26

19. Which principle advises using the phrase 'Clearly state the requirements that the model must follow in order to produce content, in the form of the keywords, regulations, hint, or instructions.' in prompts?
a) Principle 1
b) Principle 2
c) Principle 3
d) Principle 25

Answer: d) Principle 25

20. Which principle advises against providing examples in prompts unless absolutely necessary?
a) Principle 1
b) Principle 2
c) Principle 3
d) Principle 8

Answer: d) Principle 8

21. Which principle advises using the phrase 'Understand the problem deeply and solve it completely.' in prompts?
a) Principle 1
b) Principle 2
c) Principle 3
d) Principle 5

Answer: d) Principle 5

22. Which principle advises using the phrase 'Consider all possible edge cases and ensure the solution works correctly for all of them.' in prompts?
a) Principle 1
b) Principle 2
c) Principle 3
d) Principle 5

Answer: d) Principle 5

23. Which principle advises using the phrase 'Verify the validity of the solution by checking it against known constraints and assumptions.' in prompts?
a) Principle 1
b) Principle 2
c) Principle 3
d) Principle 5

Answer: d) Principle 5

24. Which principle advises using the phrase 'Ensure the solution is robust and handles unexpected situations gracefully.' in prompts?
a) Principle 1
b) Principle 2
c) Principle 3
d) Principle 5

Answer: d) Principle 5

25. Which principle advises using the phrase 'Keep the solution simple and easy to understand.' in prompts?
a) Principle 1
b) Principle 2
c) Principle 3
d) Principle 6

Answer: d) Principle 6

26. Which principle advises using the phrase 'Make reasonable assumptions and document them clearly.' in prompts?