Practice: Prompt Engineering for Effective Software Testing
0/30 answered
Q1K2
A tester drafts a structured prompt for defect analysis. One line reads: "Act as a senior test analyst specializing in requirements-based testing." Which component of the six-part prompt structure does this line represent?
Q2K2
A tester includes the following in a structured prompt: "Use only the attached API specification and the three historical defect reports provided below; do not infer functionality from general software knowledge." Which component does this line MOST LIKELY represent?
Q3K2
A tester wants prioritized test conditions returned as a numbered list with columns for ID, requirement reference, and risk level. In which component should this requirement MOST LIKELY appear?
Q4K2
A tester examines a structured prompt for requirements defect analysis. One line reads: "The potential defects must be provided in a markdown table with columns: ID, requirement reference, defect type, description, severity." Which component would this line MOST LIKELY appear in?
Q5K2
Which of the following BEST differentiates prompt chaining, few-shot prompting, and meta prompting?
Q6K2
Which statement about core prompting techniques is INCORRECT?
Q7K2
A tester has well-defined transformation rules and a few existing test cases with known expected results. They want the LLM to generate additional test cases by precisely applying those rules. Which prompting technique is BEST suited?
Q8K2
Match each prompting technique (1-3) with its BEST application (A-C)
Items
1—Prompt chaining
2—Few-shot prompting
3—Meta prompting
Descriptions
A—Generating Gherkin-style test cases using predefined examples
B—Progressively analyzing a user story through verified intermediate steps
C—Collaborating with the LLM to co-create an effective prompt for a new test task
Q9K2
What is the primary function of a system prompt in interactions with LLMs?
Q10K2
Which statement about system prompts and user prompts is CORRECT?
Q11K2
A system prompt reads: "You are a professional software testing assistant. Always respond clearly, use formal language, and focus on ISTQB-aligned practices." A user prompt reads: "Identify ambiguities in the attached user story." Which statement BEST describes their relationship?
Q12K3
You must apply this approach to stable, already-reviewed requirements: generate test conditions, prioritize by risk, and identify coverage gaps using prompt chaining. Which sequence (i-v) should you follow? i. Submit requirements and prompt the LLM to produce test conditions. ii. Provide test conditions with prioritization context and prompt the LLM to prioritize. iii. Provide prioritized test conditions and prompt the LLM to analyze coverage gaps. iv. Submit requirements and prompt the LLM to produce prioritized test conditions addressing all aspects in one step. v. Submit requirements and prompt the LLM to detect inconsistencies and ambiguities.
Q13K3
A structured prompt for performance test analysis includes: "Test reports from performance testing tools, system monitoring logs during peak usage, and application performance benchmarks from previous releases." In which component would this MOST LIKELY appear?
Q14K3
You have a GUI wireframe image and a related user story. You want high-quality acceptance criteria. Which approach is MOST appropriate?
Q15K3
You are using prompt chaining to refine acceptance criteria for a user story. Which sequence BEST reflects syllabus best practice?
Q16K3
Apply few-shot structured prompting to generate Gherkin-style test cases for the user story "As a user, I want to reset my password so that I can regain access to my account if I forget it" and the acceptance criterion "When a user submits a registered email address then they receive a password reset email." Which prompt is BEST suited?
Q17K3
Test data must resemble production data but cannot expose sensitive information. Which GenAI approach is MOST appropriate?
Q18K3
You have 500 test cases with interdependencies and need to optimize the execution schedule. Which approach is BEST?
Q19K3
You are using GenAI for functional test case generation with prompt chaining, structured prompts, and meta prompting. Which sequence BEST aligns with syllabus practice?
Q20K3
A minor UI change caused 20% of automated scripts to fail due to dynamic locator changes. How can GenAI support a self-healing approach?
Q21K3
You are improving a structured prompt for regression test report analysis. The initial draft asks to identify discrepancies and output a table. Which improvement BEST aligns with comprehensive regression test report analysis?
Q22K3
Which regression testing activity is LEAST likely to be directly supported by GenAI prompting alone, without careful human verification?
Q23K3
You have a large volume of unstructured test logs. How should you apply GenAI for test monitoring?
Q24K3
You are using an LLM to prepare actionable test metrics (progress, defect trends, coverage) for stakeholders. Which improvement BEST enhances accuracy and actionability?
Q25K3
A project is behind schedule. Which use of GenAI BEST supports test control?
Q26K3
Which of the following statements (i-iv) about selecting prompting techniques are CORRECT? i. Few-shot prompting is recommended for repetitive tasks with a specific output format. ii. Prompt chaining is recommended for complex tasks requiring precision with human verification at each step. iii. Meta prompting is useful when crafting prompts for new or flexible tasks. iv. Zero-shot prompting is always preferred over few-shot prompting for Gherkin test case generation.
Q27K3
You need to generate highly accurate test scripts where each step must be verified before the next is created. Which technique should you select?
Q28K3
Meta prompting can be combined with other techniques. Which sequence BEST reflects syllabus guidance?
Q29K2
You are evaluating GenAI outputs for an entertainment software application. The model generates test cases, API scripts, and synthetic edge-case data. Which combination of metrics and actions BEST ensures comprehensive assessment?
Q30K2
An LLM consistently generates test cases with wrong expected results that contradict input requirements. Which refinement technique is BEST for determining why this happens and optimizing the prompt?
Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9, Q10, Q11, Q12, Q13, Q14, Q15, Q16, Q17, Q18, Q19, Q20, Q21, Q22, Q23, Q24, Q25, Q26, Q27, Q28, Q29, and Q30 each need 1 answer before you can submit.