🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A."Give me the full solution"
  2. B."Don't give the solution; give me a hint about which data structure fits"
  3. C."Write it in the shortest code possible"
  4. 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 →