BANK| PRACTICAL APPLICATIONS OF PROMPT ENGINEERING (D685)
FINAL EXAM PREP WITH COMPLETE 300 REAL EXAM QUESTIONS AND
CORRECT VERIFIED ANSWERS/ ALREADY GRADED A+
(MOST RECENT!!)
DOMAIN 1: FUNDAMENTALS OF PROMPT ENGINEERING
Question 1
Which of the following best defines prompt engineering?
A) Training a large language model from scratch using custom datasets
B) The process of crafting input queries to guide AI models toward generating
desired outputs
C) Writing computer code to control AI system behavior
D) Evaluating AI model performance using statistical metrics
Answer: B
Rationale: Prompt engineering is the art and science of designing effective input
prompts to elicit specific, accurate, and useful responses from generative AI
models, without modifying the model itself.
Question 2
What does the term "prompt" refer to in the context of generative AI?
A) The output generated by an AI model
B) The training data used to fine-tune a model
C) The input text or instruction given to a model to elicit a response
D) The underlying neural network architecture
Answer: C
Rationale: A prompt is any input provided to an AI system—it can be a question, a
statement, a partial sentence, or a complex instruction that guides the model's
generation.
Question 3
What is the primary goal of prompt engineering?
A) To increase the computational speed of AI inference
1
,B) To craft precise, effective inputs that guide AI toward accurate, relevant, and
high-quality outputs
C) To eliminate all factual errors from AI-generated content
D) To replace traditional programming languages with natural language
Answer: B
Rationale: While speed and accuracy are important, the core goal is to design
prompts that consistently produce the desired response quality, format, and
content.
Question 4
Which of the following is NOT a typical component of a well-structured prompt?
A) Clear instruction or task description
B) Context or background information
C) Random noise injected to test model robustness
D) Desired output format specification
Answer: C
Rationale: Well-structured prompts include instructions, context, and format
requirements. Random noise is not a standard component and usually degrades
performance.
Question 5
In prompt engineering, what does "temperature" control?
A) The length of the output
B) The randomness or creativity of the generated text
C) The number of tokens processed by the model
D) The training epoch count
Answer: B
Rationale: Temperature is a sampling parameter that affects the probability
distribution; higher values produce more diverse/random outputs, lower values
make outputs more deterministic.
Question 6
2
,Which parameter is typically used to limit the maximum number of tokens in the
generated response?
A) Top-p
B) Max length (or max tokens)
C) Frequency penalty
D) Presence penalty
Answer: B
Rationale: Max tokens sets a hard limit on the output length, preventing overly
long generations.
Question 7
What is a "zero-shot" prompt?
A) A prompt that includes no examples and relies solely on the instruction
B) A prompt that includes one example of the desired output
C) A prompt that includes multiple examples (few-shot)
D) A prompt that uses chain-of-thought reasoning
Answer: A
Rationale: Zero-shot means the model is given only the instruction, without any
demonstration examples, and must perform the task based on its pretrained
knowledge.
Question 8
A "few-shot" prompt differs from zero-shot by:
A) Using more computational resources
B) Including a small number of input-output examples to guide the model
C) Requiring fine-tuning of the model
D) Increasing the temperature setting
Answer: B
Rationale: Few-shot learning provides a few demonstration pairs to illustrate the
task, helping the model understand the pattern without weight updates.
Question 9
Which of the following is a key benefit of few-shot prompting?
3
, A) It reduces the need for any context
B) It can improve performance on complex tasks by providing examples of desired
reasoning or format
C) It always guarantees perfect accuracy
D) It eliminates the need for clear instructions
Answer: B
Rationale: Examples help the model infer the task structure, especially when the
instruction alone is ambiguous or complex.
Question 10
What is "chain-of-thought" (CoT) prompting?
A) A technique where the model is asked to produce intermediate reasoning steps
before giving the final answer
B) A method for concatenating multiple prompts into a single long input
C) A way to chain multiple API calls to different models
D) A prompt that lists only the final answer without any reasoning
Answer: A
Rationale: CoT encourages the model to "think aloud" by generating step-by-step
reasoning, which often leads to more accurate results on arithmetic and logical
tasks.
Question 11
Which of the following tasks is chain-of-thought prompting most beneficial for?
A) Simple text classification
B) Multilingual translation
C) Complex multi-step arithmetic or logical reasoning
D) Sentiment analysis of short phrases
Answer: C
Rationale: CoT shines in tasks that require multiple reasoning steps, where
intermediate calculations or logic lead to the final answer.
Question 12
What is the role of "system prompts" in some AI interfaces?
4