Sample questions
Question 1Easy
Which testing principle says that testing can show the presence of defects but cannot prove their absence?
- Testing shows the presence of defects
- Defect clustering
- Pesticide paradox
- Absence-of-errors fallacy as a rule
Answer: A. Testing shows the presence of defects
Explanation
Even passing tests cannot guarantee that no defect remains.
Step-by-step solution
- The question describes the testing principle that testing can show defects are present, but cannot prove none remain.
- Option A states that principle, testing shows the presence of defects.
- The other options name different ideas, such as defect clustering or the pesticide paradox.
- So the answer is option A.
Why the other options are wrong
- B. Defect clustering says most defects sit in a few modules, not about proof of absence.
- C. The pesticide paradox says repeated tests stop finding new bugs, a different idea.
- D. The absence-of-errors fallacy is a separate idea, not the principle that testing cannot prove absence.
Tip: Testing principle 1: testing shows the presence of defects, not their absence.
Question 2Easy
A tester notices that a test passes but the actual behaviour looks wrong compared with the requirement. What should be done first?
- Ignore it because the test has passed
- Mark the test as flaky and move on
- Check the expected result and raise a defect or fix the test
- Delete the test case from the suite
Answer: C. Check the expected result and raise a defect or fix the test
Explanation
A passing test with a wrong expected result is a false pass. The oracle must be checked against the requirement.
Step-by-step solution
- Compare with the requirement.
- Expected result is suspect.
- Fix test or report defect.
Why the other options are wrong
- A. A pass on a wrong oracle gives false confidence.
- B. Flaky means inconsistent results, which this is not.
- D. Deleting hides the problem.
Question 3Easy
Why is exhaustive testing considered impractical for most software?
- Testers are never available in sufficient numbers anywhere
- Input and path combinations are practically infinite
- Automation tools cannot run so many cases
- Customers do not request it in contracts
Answer: B. Input and path combinations are practically infinite
Explanation
Even small programs have enormous input and path combinations, so testing is prioritised by risk instead.
Step-by-step solution
- Count the input combinations.
- They explode quickly.
- Hence we select tests by risk.
Why the other options are wrong
- A. The limit is the size of the input space, not staff.
- C. Tools are not the limiting factor either.
- D. Contracts are irrelevant to the principle.
Question 4Easy
What is the difference between verification and validation?
- Verification is done by users; validation is done by developers in every release in most projects
- Verification checks we built the product right; validation checks we built the right product
- Verification runs the code; validation never does
- They are two names for the same activity
Answer: B. Verification checks we built the product right; validation checks we built the right product
Explanation
Verification checks conformance to specification, validation checks fitness for the user's real needs.
Step-by-step solution
- Verification asks whether the product was built right, meaning it matches the specification.
- Validation asks whether the right product was built, meaning it meets the user's real needs.
- Option B states exactly that pair.
- So the answer is option B.
Why the other options are wrong
- A. It swaps the roles and wrongly says validation is done by developers in every release.
- C. Validation also runs the code, so 'never does' is false.
- D. They are different activities with different questions.
Tip: Verification: are we building it right (to spec)? Validation: are we building the right thing (for the user)?
Question 5Medium
The statement 'testing is context dependent' means:
- Different software needs different test approaches
- Tests depend on the personal mood of the tester
- Testing is performed only after the deployment day
- The same test suite fits every kind of product
Answer: A. Different software needs different test approaches
Explanation
A safety-critical system is tested differently from a game or a web shop, because risks differ.
Step-by-step solution
- Products differ.
- Risks differ.
- So approaches differ.
Why the other options are wrong
- B. It is about the product, not the person.
- C. Timing is a different matter.
- D. The opposite of the principle.
Question 6Medium
Why is early testing recommended (shift-left)?
- Early tests need no test cases
- Defects found earlier are cheaper to fix
- Late testing is not allowed by standards
- Early testing removes the need for regression testing
Answer: B. Defects found earlier are cheaper to fix
Explanation
The cost of fixing a defect grows as it moves later in the lifecycle.
Step-by-step solution
- Shift-left means testing earlier in the development lifecycle.
- A defect found early is cheaper to fix than one found after release.
- The cost of a fix grows as the defect moves later in the lifecycle.
- So the answer is option B.
Why the other options are wrong
- A. Early tests still need test cases; early testing does not remove them.
- C. No standard forbids late testing as such; the reason for early testing is cost.
- D. Early testing does not remove regression testing.
Tip: Find defects early: the earlier a bug is caught, the cheaper it is to fix.
Question 7Medium
Which item is normally part of the exit criteria for a test phase?
- Planned tests run and critical defects closed
- The test environment has been installed and checked
- Testers have been assigned to the project
- The requirements have been approved and signed
Answer: A. Planned tests run and critical defects closed
Explanation
Exit criteria say when testing can stop, such as planned coverage reached and no open critical defects.
Step-by-step solution
- Exit means done.
- Done needs executed tests.
- Critical defects must be closed.
Why the other options are wrong
- B. Environment readiness is an entry criterion.
- C. Staffing is an entry-side concern.
- D. Requirement approval comes before testing starts.
Question 8Medium
What is the difference between a test plan and a test strategy?
- The plan is only for automation and the strategy only for manual testing
- The strategy lists defects and the plan lists test cases
- They are the same document with different names
- The strategy is organisation-wide; the plan covers one project's scope and schedule
Answer: D. The strategy is organisation-wide; the plan covers one project's scope and schedule
Explanation
A strategy is a high-level, often long-lived approach; a plan applies it to a particular project with dates, scope and roles.
Step-by-step solution
- Strategy is organisation level.
- Plan is project level.
- Plan adds schedule and resources.
Why the other options are wrong
- A. Both can cover manual and automated tests.
- B. Neither is a defect list.
- C. They differ in level and scope.
Question 9Hard
A team keeps re-running the same unchanged regression suite and has stopped finding new defects while users still report bugs. Which principle fits, and what is the best remedy?
- Defect clustering; test only the oldest module
- Pesticide paradox; refresh and vary the tests
- Early testing; start testing earlier still
- Absence-of-errors fallacy; stop testing
Answer: B. Pesticide paradox; refresh and vary the tests
Explanation
Repeating identical tests loses effectiveness, just as pesticide stops working. Tests must be reviewed and refreshed.
Step-by-step solution
- Same tests find nothing new.
- Users still hit bugs.
- Refresh the tests.
Why the other options are wrong
- A. Clustering would not explain repeating tests.
- C. Early testing does not address stale tests.
- D. Stopping makes things worse.
Question 10Hard
What is the test oracle problem?
- The Oracle database cannot run the tests
- Knowing the right expected result can be hard
- Tests always fail when no database is present
- Automation tools cannot read the test results
Answer: B. Knowing the right expected result can be hard
Explanation
A test needs a trustworthy source of expected results, which can be difficult for complex or non-deterministic systems.
Step-by-step solution
- Need expected result.
- Source can be unclear.
- Oracle problem.
Why the other options are wrong
- A. It is about expected results, not a product.
- C. It is a general issue, not a database one.
- D. Tools can read results; the problem is knowing what is right.
Practise all 20 questions free
The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.
Open this topic in the app →