🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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 →
  1. Q1. Which prompt is most likely to produce the code you actually need?
  2. Q2. What is the benefit of asking the AI for a plan before code?
  3. Q3. In the demo, what did normaliseindianmobile return for "5876543210"?
  4. Q4. The AI's function returns None for an empty list but you need 0.0. What is the best follow-up?
  5. Q5. Which is a good prompt for LEARNING a DSA problem?
  6. Q6. In the spec template, what belongs in the "DONE WHEN" section?
  7. Q7. Why paste an existing function from your project and say "follow this pattern"?
  8. Q8. What does this print? (code)
  9. Q9. Which line is an example of stating what NOT to do?
  10. Q10. You need a full exam portal. What is the best way to use an AI assistant?