← All topics
Quiz: Prompting for Code: questions with answers
10 questions, each with the answer and a short explanation.
Take the timed quiz + get a certificate →- Q1. Which prompt is most likely to produce the code you actually need?
- Q2. What is the benefit of asking the AI for a plan before code?
- Q3. In the demo, what did normaliseindianmobile return for "5876543210"?
- Q4. The AI's function returns None for an empty list but you need 0.0. What is the best follow-up?
- Q5. Which is a good prompt for LEARNING a DSA problem?
- Q6. In the spec template, what belongs in the "DONE WHEN" section?
- Q7. Why paste an existing function from your project and say "follow this pattern"?
- Q8. What does this print? (code)
- Q9. Which line is an example of stating what NOT to do?
- Q10. You need a full exam portal. What is the best way to use an AI assistant?