D4: Prompt Engineering Principles & Chat History
GH-300 GitHub Copilot exam practice questions · 10 flashcards
Question
Prompt engineering principles?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Prompt Engineering Principles & Chat History practice questions and answers
- Prompt engineering principles?Clarity, context, specificity, decomposition, iteration, examples.
- Prompt process flow?User prompt → context added → proxy → model → filters → response → user refines.
- Chat history usage?Previous messages included as context for follow-ups.
- When to clear history?Topic changes or confusing context — start new chat.
- Iterative refinement?Follow up with corrections rather than starting over.
- Chain-of-thought style prompting?Ask to reason step by step or outline plan before code.
- Decomposition?Split big tasks into smaller prompts.
- Using comments as prompts?Detailed comments above functions guide completions.
- Naming for context?Descriptive function/variable names improve suggestions.
- Scenario: long chat drifting to irrelevant answers. Action?Start a new chat/clear history with a focused prompt.