Prompt Engineering| Questions and Well
Detailed Answers Plus Rationales|
Graded A+| LATEST UPDATE
1.
Q: Which of the following best defines prompt engineering?
A) Writing code for AI models
B) The art and science of crafting inputs that produce desired outputs from AI models
C) Building databases for AI
D) Training neural networks
A: B
Rationale: Prompt engineering focuses on designing effective prompts to guide generative AI
behavior without retraining the underlying model.
2.
Q: A good prompt is:
A) Vague and open-ended
B) Clear, specific, and contextually grounded
C) Only one sentence long
D) Irrelevant to the task
A: B
Rationale: Clarity and specificity help the model understand user intent and generate
high-quality responses.
3.
Q: Zero-shot prompting refers to:
A) Prompting without any examples
B) Prompting with one example
C) Prompting with many examples
D) Prompting for images
,A: A
Rationale: Zero-shot means the model is given a task with no example demonstrations.
4.
Q: Few-shot prompting involves:
A) No guidance
B) Providing a small number of examples to guide the model
C) Training the model from scratch
D) Ignoring prompt structure
A: B
Rationale: Few-shot provides example inputs and outputs to improve model performance.
5.
Q: A chain-of-thought prompt is used to:
A) Shorten the response
B) Encourage the model to reason step by step
C) Provide images
D) Generate random text
A: B
Rationale: Chain-of-thought techniques guide the model to articulate intermediate reasoning
steps.
6.
Q: Prompt templates help standardize:
A) Model weights
B) Prompt structures for repeatable tasks
C) Dataset sizes
D) Response latency
A: B
Rationale: Templates create consistent frameworks for similar prompt tasks.
7.
, Q: One strategy to reduce hallucinations is to:
A) Use vague prompts
B) Provide grounding context and examples
C) Reduce prompt length
D) Disable output filtering
A: B
Rationale: Grounding with facts limits speculative generation.
8.
Q: Prompt engineers often use constraints to:
A) Reduce compute costs only
B) Guide the format and content of model outputs
C) Increase randomness
D) Bypass safety filters
A: B
Rationale: Constraints (e.g., “List 5 items”) shape responses into useful formats.
9.
Q: A system prompt primarily:
A) Provides interaction instructions to the underlying model
B) Is ignored by the model
C) Trains the model
D) Removes context
A: A
Rationale: System prompts set high-level rules or roles for the model’s behavior.
10.
Q: Prompt ambiguity most often leads to:
A) Model crashes
B) Incoherent or incorrect results
C) Lower costs
D) Faster inference