← Quiz: Prompting for Code: all 10 questions
Quiz: Prompting for Code · Question 7 of 10
Why paste an existing function from your project and say "follow this pattern"?
Why paste an existing function from your project and say "follow this pattern"?
- A.It makes the model run faster
- B.The model cannot write code without an example
- C.It hides your code from the model
- D.The new code then matches your project's style and conventions
Answer & explanation
Correct answer: The new code then matches your project's style and conventions
Showing is more precise than describing.
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 →