Previously, you learned about iterative prompting to improve quality and prompt chaining to manage complexity. Let's practice deciding which technique to use in software development scenarios and how to apply them effectively.
Remember, iteration perfects a single coding task, while chaining connects multiple development steps.
Engagement Message
Ready to sharpen your development prompting skills?
Type
Sort Into Boxes
Practice Question
Sort these software development scenarios based on the best prompting technique to use.
Labels
- First Box Label: Use Iterative Prompting
- Second Box Label: Use Prompt Chaining
First Box Items
- Optimize SQL query
- Debug a function
- Refactor code style
Second Box Items
- Build REST API
- Create app docs
- Deploy full stack
Type
Multiple Choice
Practice Question
You asked an AI to "write a Python function to sort data" and it produced basic, inefficient code. What is the best next step using iterative prompting?
A. Start a new chat and ask the same question again. B. Edit the prompt to specify the data type, performance requirements, and error handling needs. C. Ask the AI to "make it better." D. Give up and write it yourself.
Suggested Answers
- A
- B - Correct
- C
- D
Type
Fill In The Blanks
Markdown With Blanks
Fill in the blanks to complete the analogy.
