ASTQB Practice Questions
Prepare for ASTQB with more than an answer.
- Exam fee
- $229 USD
- Level
- Foundation
- Valid for
- Lifetime
Domains covered on the exam 6
- Fundamentals of Testing20%
- Testing Throughout the Software Development Lifecycle15%
- Static Testing10%
- Test Analysis and Design27.5%
- Managing the Test Activities22.5%
- Test Tools5%
- 1
What is the primary purpose of defining clear exit criteria in a master test plan?
Show answer details
Correct answer: B
This is the correct purpose. Exit criteria are a set of predefined and agreed-upon conditions that must be achieved to conclude a test activity. Examples include reaching a certain level of code coverage, having no outstanding critical defects, or passing a specific percentage of test cases.
- 2
Consider the following pseudo-code for a function that calculates a delivery charge. What is the minimum number of test cases required to achieve 100% branch coverage?
- Read OrderValue
- Set DeliveryCharge = 10
- IF OrderValue > 100 THEN
- DeliveryCharge = 0
- END IF
- IF IsPremiumMember = TRUE THEN
- DeliveryCharge = 0
- END IF
- Return DeliveryCharge
Show answer details
Correct answer: B
There are two IF statements, each with a TRUE and a FALSE branch, totaling four branches. We need to cover all four outcomes.
Case 1: OrderValue > 100 is TRUE (e.g., 120). Let IsPremiumMember = FALSE. This covers the first TRUE branch.
Case 2: IsPremiumMember = TRUE (e.g., TRUE). Let OrderValue = 50. This covers the second TRUE branch.
Case 3: Both conditions are FALSE. OrderValue <= 100 (e.g., 50) and IsPremiumMember = FALSE. This covers both FALSE branches simultaneously.
Therefore, a minimum of 3 test cases can achieve 100% branch coverage. - 3
In a mature DevOps environment with a CI/CD pipeline, where is the most appropriate stage to execute a comprehensive, automated regression test suite that covers the application's core business-critical functionality?
Show answer details
Correct answer: C
This is the ideal stage. After the code is successfully built and deployed to a stable, production-like environment (staging), the automated regression suite can run. This validates that the new changes have not broken existing functionality before the code is considered for promotion to production.
- 4
A project is two weeks from its release date and is significantly behind schedule. The test manager has been asked to propose actions to mitigate the quality risks associated with the compressed timeline. Which of the following are the MOST effective risk mitigation strategies in this situation? (Select THREE)
Show answer details
Correct answer: A, C, D
This is a core principle of risk-based testing. When time is limited, prioritizing test activities based on the likelihood and impact of potential failures ensures that the most important areas receive the most attention.
Adding skilled resources, if they can be onboarded quickly, can help increase the amount of testing that can be accomplished in the remaining time. This directly addresses the resource constraint.
This is an effective project-level mitigation. By reducing the scope of the release, the amount of testing required is also reduced, allowing the team to focus on ensuring the quality of the remaining high-priority features.
- 5
True or False: Exploratory testing is a completely random and unstructured activity that does not require documentation or preparation.
Show answer details
Correct answer: B
This is correct. Professional exploratory testing is structured through techniques like session-based test management, where testers work with specific charters (missions), use time-boxing, and document their findings, notes, and issues. It combines simultaneous learning, test design, and test execution in a structured way.
- 6
A new e-commerce platform offers tiered discounts based on customer loyalty status and purchase total. The rules are: 'Bronze' members get 5% off on purchases over $50. 'Silver' members get 10% off on purchases over $75. 'Gold' members get 15% off on purchases over $100. Using equivalence partitioning, which set of test data represents the most effective approach for testing the 'Silver' member discount?
Show answer details
Correct answer: B
This is the correct application of equivalence partitioning. For a 'Silver' member, the two partitions are purchases up to $75 (no discount) and purchases over $75 (discount applies). Choosing one representative value from each partition ($65 and $85) is the most efficient way to test this logic using this technique.
- 7
A test manager is leading a project that uses an Agile development methodology with two-week sprints. To effectively communicate progress to stakeholders, which set of metrics would be most valuable for the daily stand-up meetings and the end-of-sprint review?
Show answer details
Correct answer: C
This is the best choice for an Agile context. A burn-down chart provides a clear visual of progress against the sprint goal. Highlighting blocking issues and critical defects is crucial for the team to address impediments quickly, which is a key focus of daily stand-ups and sprint reviews.
- 8
In a system built on a microservices architecture, one team is responsible for the 'User Authentication' service and another for the 'Order Processing' service. Testing that an authenticated user's token is correctly passed to and validated by the Order Processing service when an order is placed is an example of what test level?
Show answer details
Correct answer: B
This is a classic example of integration testing. It specifically focuses on testing the interface and interaction between two separate software components or services ('User Authentication' and 'Order Processing') to ensure they work together as expected.
- 9
True or False: The 'pesticide paradox' testing principle suggests that if the same set of tests is repeated many times, it becomes increasingly effective at finding new defects.
Show answer details
Correct answer: B
This is correct. The pesticide paradox states that if the same tests are repeated over and over again, they will eventually no longer find new defects. To overcome this, test cases need to be regularly reviewed and revised, and new tests need to be written to exercise different parts of the software.
- 10
You are tasked with testing a new insurance premium calculation module. The calculation depends on the applicant's age (18-65), driving record (number of violations, 0-5), and vehicle type (Sedan, SUV, Truck). Which of the following test techniques would be MOST effective to ensure the complex business rules and combinations of conditions are thoroughly validated? (Select THREE)
Show answer details
Correct answer: A, B, C
Equivalence Partitioning is highly effective here for dividing the possible inputs into groups that are expected to be processed similarly. For example, ages 18-25 might be one partition, and 26-40 another. This helps achieve broad coverage efficiently.
Boundary Value Analysis is crucial for testing the edges of the numerical ranges, such as ages 18 and 65, and the number of violations (0 and 5). Errors often occur at these boundaries, making this technique essential.
Decision Table Testing is ideal for this scenario because it involves complex business rules based on combinations of different conditions (age, violations, vehicle type). This technique systematically covers all valid combinations of rules, ensuring no logic path is missed.
