Skip to content

Prompt crafting and prompt engineering Questions

Practice questions for Prompt crafting and prompt engineering topic in GitHub Copilot. 17 questions covering this domain.

17 questions4 easy9 medium4 hard
Q1
medium

Which type of custom instruction has the highest precedence when multiple instruction sources apply?

Q2
hard

A file matches both a path-specific instruction file and a repository-wide `copilot-instructions.md` file. Which statement is correct?

Q3
easy

Which prompt-writing practice does GitHub recommend to improve Copilot Chat output quality?

Q4
medium

In prompt engineering, what does zero-shot prompting mean?

Q5
medium

Copilot Chat keeps using outdated assumptions from earlier in the conversation. What should you do first?

Q6
medium

You want Copilot to migrate an old module, add tests, and update documentation. Which prompting approach is most effective?

Q7
hard

Which example best represents few-shot prompting when working with GitHub Copilot?

Q8
easy

A developer starts with a vague goal in Copilot Chat. According to prompt-crafting guidance, what is the best next step?

Q9
hard

You need Copilot to modernize a legacy module, add tests, and document the changes. Which prompting strategy best matches GitHub guidance?

Q10
medium

Which change turns a zero-shot request into a few-shot request?

Q11
easy

A prompt says make this better. Which revision best follows GitHub guidance?

Q12
medium

Why does good code hygiene improve prompt outcomes with GitHub Copilot?

Q13
medium

A long chat keeps dragging old unrelated context into new answers. What is the best corrective action?

Q14
medium

You want Copilot to modernize a legacy module, add tests, and update docs. Which approach best matches GitHub guidance?

Q15
hard

When personal, repository, and organization instructions all apply, which one has the highest priority?

Q16
easy

Which revision best improves a vague prompt such as improve this function?

Q17
medium

Which request is an example of few-shot prompting?

Sign in to see all 17 questions

Create a free account to browse all questions — completely free during our launch phase.