Docsity

Prompt Engineering Foundations Practice Test (100 Questions)., Exercises of Nursing

Toggle sidebar
bg1
Prompt Engineering Foundations
Practice Test (100 Questions).
Section 1: Foundations of Generative AI & Prompt Engineering (Questions 1–25)
1. What is the primary goal of prompt engineering?
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
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.
2. Which capability represents a genuine benefit of artificial intelligence?
A) Exercising common sense and fully independent reasoning
B) Processing data in real time
C) Eliminating all investment risk
D) Guaranteeing emotional accuracy
Rationale: AI systems can rapidly process large quantities of incoming information. Common sense and
fully independent reasoning are not inherent AI capabilities.
3. A financial-advisory company wants to use AI to improve business processes. Which task is
particularly suitable for AI?
A) Eliminating investment risk
B) Summarizing documents
C) Guaranteeing returns
D) Replacing all human judgment
Rationale: Natural-language AI can efficiently process lengthy financial documents and produce concise
summaries. Eliminating risk requires human judgment.
4. A social-media company wants to add AI capabilities. Which task is suitable for AI?
A) Interpreting cultural nuances
B) Understanding users' emotions
C) Extracting text from images
D) Making ethical judgments
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Prompt Engineering Foundations Practice Test (100 Questions). and more Exercises Nursing in PDF only on Docsity!

Prompt Engineering Foundations

Practice Test (100 Questions).

Section 1: Foundations of Generative AI & Prompt Engineering (Questions 1–25)

1. What is the primary goal of prompt engineering? 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 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. 2. Which capability represents a genuine benefit of artificial intelligence? A) Exercising common sense and fully independent reasoning B) Processing data in real time C) Eliminating all investment risk D) Guaranteeing emotional accuracy Rationale: AI systems can rapidly process large quantities of incoming information. Common sense and fully independent reasoning are not inherent AI capabilities. 3. A financial-advisory company wants to use AI to improve business processes. Which task is particularly suitable for AI? A) Eliminating investment risk B) Summarizing documents C) Guaranteeing returns D) Replacing all human judgment Rationale: Natural-language AI can efficiently process lengthy financial documents and produce concise summaries. Eliminating risk requires human judgment. 4. A social-media company wants to add AI capabilities. Which task is suitable for AI? A) Interpreting cultural nuances B) Understanding users' emotions C) Extracting text from images D) Making ethical judgments

Rationale: AI-supported optical character recognition (OCR) and computer vision can identify and extract text from images.

5. A software-development company wants to incorporate AI into programming. Which task is well- suited for AI assistance? A) Defining project structure B) Performing user testing C) Explaining code errors D) Specifying requirements Rationale: Generative AI can examine error messages or code snippets and explain likely causes. Defining requirements still requires human judgment. 6. What is "generative AI"? A) AI that only classifies existing data B) AI systems that can create new content C) AI that replaces human reasoning D) AI limited to numerical analysis Rationale: Generative AI creates new content such as text, images, or code based on patterns learned from training data. 7. What is a "large language model" (LLM)? A) A database of pre-written responses B) A machine learning model trained on massive text data to understand and generate human-like language C) A rule-based chatbot D) A search engine Rationale: LLMs are trained on vast text corpora to predict and generate language. 8. What does "natural language processing" (NLP) refer to? A) Programming languages used for AI B) The field of AI focused on enabling computers to understand and engage with human language C) A method for training neural networks D) A type of computer vision Rationale: NLP bridges human communication and machine understanding. 9. What is a "prompt" in the context of LLMs? A) A hyperparameter used during training B) The input text or instruction provided to a language model to guide its response C) The model's internal weights D) A type of neural network layer Rationale: The prompt is the user's query or instruction that elicits a model response. 10. What does the "temperature" parameter control in an LLM? A) The maximum length of the response B) The randomness and creativity of the output C) The number of tokens processed per second

C) Training the model from scratch D) Using zero temperature Rationale: Zero-shot relies on the model's pre-trained knowledge without task-specific examples.

17. What is "few-shot prompting"? A) Using very few tokens in a prompt B) Providing examples of desired input-output pairs before asking the model to perform a task C) Asking the model to respond in fewer words D) Using a low temperature setting Rationale: Few-shot prompting leverages in-context learning by showing the model the expected pattern. 18. A data analyst provides three examples of each support ticket category before asking the model to classify a new ticket. This is: A) Zero-shot prompting B) Few-shot prompting C) Chain-of-thought prompting D) Fine-tuning Rationale: Providing exemplars within the context window is the defining feature of few-shot prompting. 19. What is "role-based prompting"? A) Assigning multiple users to one prompt B) Assigning a specific persona or role to the model to guide its responses C) Using a prompt in a role-playing game D) Training a model for a specific role Rationale: Role-based prompting instructs the model to adopt a specific expertise, tone, and perspective. 20. A prompt states: "You are a certified medical coder with 10 years of experience. Use ICD- 10 - CM guidelines." This is an example of: A) Temperature manipulation B) Role-based system prompting with behavioral constraints C) Top-p sampling D) Token optimization Rationale: The prompt establishes a role and knowledge constraints, which is role-based system prompting. 21. What is "chain-of-thought" prompting? A) Connecting multiple prompts in a sequence B) Encouraging the model to show its reasoning steps before giving a final answer C) Using a chain of models D) Providing a chain of examples Rationale: Chain-of-thought improves performance on complex reasoning tasks by making the model externalize intermediate steps. 22. Which phrase is most likely to trigger chain-of-thought reasoning? A) "Answer immediately." B) "Let's think step by step."

C) "Be concise." D) "Give me the final answer only." Rationale: Explicit instructions to reason step by step activate chain-of-thought behavior.

23. What is a "hallucination" in the context of LLMs? A) A creative and original response B) An incorrect, misleading, or entirely fabricated output C) A response that is too long D) A response generated at high temperature Rationale: Hallucinations are false outputs that appear plausible but are not grounded in fact. 24. Which of the following is a fundamental limitation of AI? A) It can perfectly reason independently B) It depends heavily on training data and lacks common sense C) It never makes errors D) It has unlimited context windows Rationale: AI systems are limited by their training data and lack genuine common sense or independent reasoning. 25. What does "AI drift" refer to? A) The model physically moving B) Performance deterioration over time as the underlying data distribution changes C) The model generating creative content D) The model's temperature increasing Rationale: AI drift occurs when a model's performance degrades because the real-world data it encounters diverges from its training data. **Section 2: Crafting Effective Prompts (Questions 26–50)

  1. Which element is most important to include in a well-designed prompt?** A) Complex vocabulary B) Clear instructions that eliminate ambiguity C) Multiple unrelated questions D) No context Rationale: Clarity is the foundation of effective prompt design. 27. Why is specificity important in prompt engineering? A) It makes prompts longer B) It reduces ambiguity and improves output relevance C) It increases temperature D) It eliminates the need for examples Rationale: Narrow, detailed prompts consistently outperform broad requests because they focus the model's output.

34. A prompt specifies: "Respond in exactly three bullet points, using formal language." This is an example of: A) Role-based prompting B) Output format specification C) Few-shot prompting D) Chain-of-thought prompting Rationale: Defining the format and tone of the response is output specification. 35. Which of the following best describes a "well-structured system prompt" for a healthcare documentation assistant? A) A prompt that includes the user's medical history B) A prompt that defines the role, specifies output format, and includes safety guardrails C) A prompt that uses high temperature D) A prompt that provides no examples Rationale: Effective system prompts require role definition, output format specifications, and safety constraints. 36. What is the "least to most" prompting technique? A) Asking the model to answer with the least amount of words B) Gradually building task complexity from simple to complex C) Providing only one example D) Using the lowest temperature setting Rationale: Least-to-most prompting starts with simple sub-tasks and progressively introduces complexity. 37. Why is "performing independent reasoning" NOT a core benefit of AI? A) AI can only do math B) AI does not actually reason independently; it processes data to produce outputs that may appear reasoned C) AI refuses to reason D) AI requires human permission to reason Rationale: AI pattern-matches from training data; it does not possess genuine independent reasoning. 38. What is a key benefit of well-designed generative AI interfaces? A) They eliminate misinformation completely B) They allow users to specify parameters or constraints to control outputs C) They filter all bias automatically D) They guarantee accuracy Rationale: Good interfaces enable users to tailor outputs through parameters and constraints. 39. A student wants to choose a high school elective for a nursing career. Which prompt is best suited for AI assistance? A) "What are the primary theorems of calculus?" B) "I want to go to college for nursing. Should I take a calculus course in high school to prepare for nursing studies?" C) "How often do nurses perform math calculations?"

D) "What is the easiest elective?" Rationale: The best prompt provides context (nursing goal), specific decision (calculus vs. other elective), and clear purpose.

40. What is a risk of neglecting clarity and specificity in a prompt? A) The model will refuse to respond B) The query may be misunderstood, producing irrelevant output C) The model will hallucinate deliberately D) The temperature will increase automatically Rationale: Ambiguous prompts lead to ambiguous responses. 41. What advantage results from detailed prompt descriptions? A) Wider range of response generation B) Facilitation of more accurate responses C) Greater creativity D) Faster processing Rationale: Detail reduces ambiguity and guides the model toward the desired output. 42. What is a benefit of creating prompts with specific personas? A) Enhanced emotional comprehension B) More user-friendly and tailored interactions C) Faster response speed D) Better memory of past conversations Rationale: Personas guide the model to adopt appropriate expertise, tone, and depth. 43. In a prompt, what does "input content" refer to? A) The model's response B) The information or data provided to the system as input for processing C) The output format D) The temperature setting Rationale: Input content is the data or text the user provides to the model. 44. What does "output format" specify in a prompt? A) The model's training data B) How the response should be structured (e.g., list, table, paragraph) C) The temperature setting D) The number of tokens Rationale: Output format controls the presentation of the response. 45. A prompt says: "Do not use technical jargon. Write for a 12-year-old audience." This is an example of: A) Role-based prompting B) Audience specification and constraint C) Few-shot prompting D) Chain-of-thought Rationale: Specifying the audience and vocabulary level constrains the model's output appropriately.

D) Role-based prompting Rationale: Tree-of-thoughts explores multiple hypotheses with self-evaluation and backtracking.

52. What is the primary advantage of tree-of-thoughts over standard chain-of-thought? A) It uses fewer tokens B) It explores multiple hypotheses with self-evaluation and backtracking C) It requires no examples D) It works only for math problems Rationale: Tree-of-thoughts allows branching exploration rather than a single linear reasoning path. 53. Which in-context learning method provides a single example question with answer followed by a second question? A) Zero-shot B) One-shot C) Few-shot D) Fine-tuning Rationale: One-shot provides exactly one exemplar before the target task. 54. What is "self-consistency" in prompt engineering? A) Using the same prompt repeatedly B) Generating multiple reasoning paths and selecting the most consistent answer C) Using low temperature D) Providing consistent examples Rationale: Self-consistency improves reliability by aggregating multiple reasoning attempts. 55. What is "ReAct" prompting? A) A technique for emotional responses B) A technique combining reasoning and acting (tool use) C) A method for faster responses D) A type of temperature control Rationale: ReAct interleaves reasoning traces with actions like search or calculation. 56. Which technique is best for complex multi-step math problems? A) Zero-shot prompting B) Chain-of-thought prompting C) Role-based prompting D) High temperature Rationale: Chain-of-thought externalizes intermediate reasoning steps, improving accuracy on multi-step problems. 57. What is "prompt chaining"? A) Connecting multiple models B) Breaking a complex task into sequential sub-tasks, each with its own prompt C) Using a chain of examples D) Chaining temperature settings Rationale: Prompt chaining decomposes complex workflows into manageable steps.

58. What is "prompt injection"? A) Injecting examples into a prompt B) A malicious attempt to override system instructions through user input C) Increasing temperature D) Adding more context Rationale: Prompt injection attacks try to manipulate the model into ignoring its system prompt. 59. How can prompt injection be mitigated? A) Increasing temperature B) Using clear separation between system and user instructions, and validating inputs C) Providing more examples D) Using longer prompts Rationale: Robust system prompt design and input validation reduce injection risk. 60. What is "adversarial prompting"? A) Prompting with a friendly tone B) Deliberately crafting inputs to deceive or manipulate AI systems C) Using multiple prompts D) Prompting at low temperature Rationale: Adversarial prompts exploit model vulnerabilities to produce harmful or incorrect outputs. 61. Which prompting technique is most suitable for a task where the model must classify text into predefined categories? A) Chain-of-thought B) Few-shot prompting with examples of each category C) Tree-of-thoughts D) High temperature Rationale: Few-shot examples help the model understand category boundaries and patterns. 62. What is "cognitive verification" in prompt engineering? A) Training the model on new data B) Asking the model to check its own reasoning or verify outputs C) Using multiple models D) Increasing temperature Rationale: Cognitive verification prompts the model to review and validate its work. 63. What is a "meta-prompt"? A) A prompt about metadata B) A prompt that instructs the model on how to respond or generate prompts C) A prompt with high temperature D) A prompt with no context Rationale: Meta-prompts define the rules or approach the model should use. 64. Which technique would best help an AI that struggles with complex queries? A) Increasing temperature B) Least-to-most prompting: start simple and gradually increase complexity

71. What is "chain-of-verification"? A) Verifying the model's training data B) A technique where the model drafts a response, then verifies and refines it C) Chaining multiple models D) Using low temperature Rationale: Chain-of-verification adds a self-checking step to reduce errors. 72. Which technique is most appropriate for creative writing tasks? A) Low temperature and strict constraints B) Higher temperature with clear creative direction C) Zero-shot only D) Chain-of-thought Rationale: Creative tasks benefit from higher randomness balanced with clear guidance. 73. What is "prompt optimization"? A) Making prompts as short as possible B) Systematically refining prompts to improve output quality and reliability C) Using only one prompt D) Eliminating all examples Rationale: Optimization involves testing variations and measuring outcomes. 74. What is a "benchmark" in prompt engineering? A) A type of model B) A standard test or set of tasks used to evaluate prompt performance C) A temperature setting D) A training dataset Rationale: Benchmarks provide consistent criteria for comparing prompt effectiveness. 75. Why is evaluation important in prompt engineering? A) It eliminates the need for iteration B) It provides evidence of whether a prompt achieves its intended outcome C) It guarantees perfect accuracy D) It reduces token usage Rationale: Evaluation closes the loop between prompt design and desired results. **Section 4: Ethics, Bias & Evaluation (Questions 76–100)

  1. Which ethical dimension involves mitigating biases in AI to prevent discriminatory outcomes?** A) Transparency B) Fairness C) Privacy D) Accountability Rationale: Fairness in AI ensures that systems do not produce discriminatory outputs.

77. What ethical principle considers how AI technologies influence access to resources and opportunities? A) Individual privacy B) Societal impact C) Model accuracy D) Token efficiency Rationale: Societal impact examines broad consequences of AI deployment. 78. Can generative AI completely filter out errors and bias? A) Yes, with proper prompts B) No, AI can still generate biased or incorrect outputs based on training data C) Yes, if temperature is set to zero D) Yes, with enough examples Rationale: AI reflects its training data; complete elimination of bias is not currently achievable. 79. What is a potential consequence of using a poorly constructed prompt? A) Improved accuracy B) Imprecise or irrelevant results C) Faster processing D) Lower costs Rationale: Poor prompts produce poor outputs—the quality of the response is tied to the quality of the prompt. 80. Which ethical issue is associated with AI in weapon systems? A) Privacy concerns only B) Dangers of autonomous attack drones C) Self-driving car dilemmas D) Bias in hiring Rationale: Autonomous weapons raise ethical concerns about accountability and human control. 81. What does "responsible AI" mean? A) AI that is always correct B) AI developed and used in ways that are ethical, transparent, and accountable C) AI that replaces human judgment D) AI with the highest temperature Rationale: Responsible AI encompasses fairness, transparency, privacy, and accountability. 82. What is "algorithmic bias"? A) A preference for certain algorithms B) Systematic and repeatable errors that create unfair outcomes C) A type of temperature setting D) A training method Rationale: Algorithmic bias arises from biased training data or design choices. 83. How can prompt engineers help mitigate bias? A) By ignoring it

D) Making the prompt longer Rationale: Evaluation requires clear criteria against which to measure output quality.

90. What does "iteration" mean in prompt engineering? A) Using the same prompt forever B) Repeatedly refining prompts based on observed outcomes C) Using multiple models D) Increasing temperature with each attempt Rationale: Iteration is the process of testing, learning, and improving prompts. 91. What is a "pre-assessment" in the context of WGU D685? A) The final exam B) A practice assessment that helps identify areas for improvement C) A performance assessment D) A peer review Rationale: Pre-assessments are low-stakes practice opportunities aligned with the OA. 92. What does "competency-based" assessment mean? A) Assessment based on time spent B) Assessment based on demonstrated knowledge and skills C) Assessment based on attendance D) Assessment based on multiple-choice only Rationale: Competency-based education measures what learners can do, not how long they spent learning. 93. Which domain carries the highest weight in the D685 OA? A) Crafting Effective Prompts (24%) B) Importance of Prompt Engineering (30%) C) Evaluating Prompt Mediums (20%) D) Prompt Engineering Optimization (26%) Rationale: The Importance of Prompt Engineering is the highest-weighted domain at 30%. 94. Which dimension of ethics ensures fairness by mitigating biases? A) Societal impact B) Fairness C) Privacy D) Transparency Rationale: Fairness specifically addresses bias and discrimination. 95. What is "in-context learning"? A) Learning from textbooks B) The model's ability to learn from examples provided within the prompt C) Training on new data D) Learning from user feedback Rationale: In-context learning allows models to adapt to tasks based on prompt examples without parameter updates.

96. What is a "context window"? A) A window in the user interface B) The maximum amount of text a model can process at once C) The training data size D) The temperature range Rationale: Context windows limit both input and output length. 97. What is "frequency penalty" in LLM parameters? A) Penalizing the model for being slow B) Reducing the likelihood of repeating the same tokens C) Increasing response length D) Lowering temperature Rationale: Frequency penalty discourages repetition in generated text. 98. What is "presence penalty" in LLM parameters? A) Penalizing the model for being absent B) Encouraging the model to introduce new topics or tokens C) Reducing hallucinations D) Increasing temperature Rationale: Presence penalty encourages diversity by penalizing tokens already present. 99. What does "top-p" (nucleus sampling) control? A) The maximum number of tokens B) The cumulative probability threshold for token selection C) The temperature D) The training duration Rationale: Top-p restricts sampling to the smallest set of tokens whose cumulative probability exceeds p. 100. What is the most important takeaway for effective prompt engineering? A) Longer prompts are always better B) Clarity, specificity, context, and iteration drive quality outcomes C) High temperature guarantees creativity D) Examples are never needed Rationale: The consistent theme across prompt engineering principles is that well-structured, clear, contextualized prompts—refined through iteration—produce the best results.