← Quiz: Prompting for Code: all 10 questions
Quiz: Prompting for Code · Question 5 of 10
Which is a good prompt for LEARNING a DSA problem?
Which is a good prompt for LEARNING a DSA problem?
- A."Give me the full solution"
- B."Don't give the solution; give me a hint about which data structure fits"
- C."Write it in the shortest code possible"
- D."Solve all problems in this sheet"
Answer & explanation
Correct answer: "Don't give the solution; give me a hint about which data structure fits"
Hints keep you doing the thinking, which is what builds skill.
Can you get the rest right without peeking?
Take the timed Quiz: Prompting for Code quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →