& Answers
**1.** What is the primary goal of prompt engineering in generative AI?
A) To write longer and more complex prompts
B) To maximize the likelihood of a desired model output
C) To reduce the number of model parameters
D) To train the model from scratch on new data
**Correct Answer:** B) To maximize the likelihood of a desired model output
**Rationale:** Prompt engineering focuses on designing inputs that guide a
generative AI model to produce accurate, relevant, and useful outputs
without modifying the model's weights. The goal is to elicit the best possible
response through careful input design, not to alter the underlying model.
---
**2.** A user asks an AI: "Where should I eat dinner?" and receives a list of
random restaurants. What is the core problem with this prompt?
A) The AI lacks sufficient training data on restaurants
B) The prompt lacks location, cuisine preference, and budget constraints
C) The AI does not understand the concept of dinner
D) The prompt is too long and complex
**Correct Answer:** B) The prompt lacks location, cuisine preference, and
budget constraints
,**Rationale:** Without specific context about the user's city, food
preferences, or price range, the AI can only guess, leading to generic and
often useless suggestions. Effective prompts must include relevant
constraints and context.
---
**3.** Why is prompt engineering considered necessary in generative AI?
A) Because AI models cannot generate any output without prompts
B) Because the quality and relevance of AI outputs depend heavily on how
inputs are structured
C) Because prompts are the only way to train AI models
D) Because prompt engineering replaces the need for model training
**Correct Answer:** B) Because the quality and relevance of AI outputs
depend heavily on how inputs are structured
**Rationale:** Prompt engineering is necessary because the way a question
or instruction is framed significantly influences the AI's response. Well-
crafted prompts improve accuracy, tone, and relevance, while poorly
constructed prompts yield vague or incorrect outputs.
---
**4.** A user writes, "Explain photosynthesis" without providing any
examples. Which prompting technique is this?
A) Few-shot prompting
, B) Chain-of-thought prompting
C) Zero-shot prompting
D) Least-to-most prompting
**Correct Answer:** C) Zero-shot prompting
**Rationale:** Zero-shot prompting means the model receives no examples;
it must rely solely on its pre-trained knowledge. This works well for common
topics but may fail for niche or highly formatted tasks.
---
**5.** Which of the following best describes the role of "temperature" in a
generative AI model?
A) The physical temperature of the hardware running the model
B) The randomness or creativity of the output
C) The speed at which the model generates responses
D) The number of tokens the model can process
**Correct Answer:** B) The randomness or creativity of the output
**Rationale:** Temperature controls the randomness of the model's output.
Lower temperature produces more predictable, deterministic responses,
while higher temperature produces more creative and varied outputs.
---