Sample questions
Question 1Easy
Black-box testing designs test cases based on:
- The database schema only
- The internal code paths, branches and loop structures of the program
- The compiler's optimisation settings
- The specification, without looking at the internal code
Answer: D. The specification, without looking at the internal code
Explanation
Black-box (behavioural) testing treats the software as opaque and checks outputs against expected behaviour for given inputs.
Step-by-step solution
- Black-box testing treats the program as opaque.
- Test cases come from specifications.
Why the other options are wrong
- A. Database schema alone is not enough.
- B. That describes white-box testing.
- C. Compiler settings are irrelevant.
Tip: Black = cannot see inside.
Question 2Easy
Testing performed without formal test cases, where the tester learns, designs and executes tests at the same time, is:
- Regression testing
- Exploratory testing
- Load testing
- Mutation testing
Answer: B. Exploratory testing
Explanation
Exploratory testing relies on the tester's skill and is often time-boxed into charters.
Step-by-step solution
- No formal test cases are scripted.
- Learning, design and execution happen together.
- That is exploratory testing.
Why the other options are wrong
- A. Regression re-runs tests after changes.
- C. Load testing measures behaviour under load.
- D. Mutation testing injects code changes to assess tests.
Question 3Easy
After a bug fix, the team re-runs previously passing tests to make sure nothing else broke. This is:
- Alpha testing
- Regression testing
- Smoke testing
- Exploratory testing
Answer: B. Regression testing
Explanation
Regression testing checks that changes have not broken existing functionality.
Step-by-step solution
- The team re-runs previously passing tests after a fix.
- The goal is to find side effects that the change may have caused elsewhere.
- Re-running old tests to catch breakage is regression testing: option B.
Why the other options are wrong
- A. Alpha testing is a user-style test before release, not a re-run of old tests.
- C. Smoke testing is a quick check of a new build's main functions.
- D. Exploratory testing is unscripted testing, not a re-run of earlier tests.
Tip: Regression asks: did this change break anything that worked before?
Question 4Easy
Which technique is a white-box testing technique?
- Decision table testing
- Branch coverage testing
- Boundary value analysis
- Equivalence partitioning
Answer: B. Branch coverage testing
Explanation
White-box (structural) techniques such as statement, branch and path coverage need knowledge of the code; the others are black-box techniques.
Step-by-step solution
- White-box testing uses knowledge of the code's internal structure.
- Branch coverage checks that each decision branch in the code is exercised.
- So branch coverage testing is the white-box technique: option B.
Why the other options are wrong
- A. Decision table testing uses the rules of the requirements, so it is black-box.
- C. Boundary value analysis uses input ranges, so it is black-box.
- D. Equivalence partitioning uses input classes, so it is black-box.
Tip: Coverage of statements, branches or paths = white-box; input-based techniques = black-box.
Question 5Medium
How does sanity testing usually differ from smoke testing?
- Sanity testing is a narrow, focused check of specific changed functionality; smoke testing is a broad check of the whole build
- Sanity testing is done before unit testing
- They differ only in who signs off the result
- Sanity testing is always automated by developers, whereas smoke testing is always performed manually by end users at their own site after the product has been released
Answer: A. Sanity testing is a narrow, focused check of specific changed functionality; smoke testing is a broad check of the whole build
Explanation
Smoke testing asks 'is the build testable at all?'; sanity testing asks 'does this particular fix or feature behave sensibly?'
Step-by-step solution
- Smoke testing is broad: it checks whether the whole build is testable.
- Sanity testing is narrow: it checks whether a specific fix or feature behaves sensibly.
- Option A states this difference in scope.
Why the other options are wrong
- B. Sanity testing is done after a change to a build, not before unit testing.
- C. The two differ in scope and purpose, not only in who signs off.
- D. Automation is not what separates them; the difference is the scope of the check.
Tip: Smoke = wide and shallow; sanity = narrow and focused.
Question 6Medium
Testing a web application with the expected peak of 5,000 concurrent users to check response times is:
- Stress testing
- Unit testing
- Static testing
- Load testing
Answer: D. Load testing
Explanation
Load testing measures behaviour under expected (normal to peak) load. Stress testing goes beyond expected limits to find the breaking point.
Step-by-step solution
- The expected peak load is 5,000 concurrent users.
- Checking response times at the expected load is load testing.
- Option D is load testing.
Why the other options are wrong
- A. Stress testing goes beyond the expected limits, not to the expected peak.
- B. Unit testing checks single units, not load.
- C. Static testing examines work products without running the code.
Tip: Expected load = load test; beyond expected load = stress test.
Question 7Medium
Reviews, walkthroughs and static code analysis are examples of:
- Static testing
- Acceptance testing
- Performance testing
- Dynamic testing
Answer: A. Static testing
Explanation
Static testing examines work products without executing the code; dynamic testing runs the software.
Step-by-step solution
- Reviews and walkthroughs examine work products without running the code.
- Static code analysis also examines code without running it.
- Both are static testing: option A.
Why the other options are wrong
- B. Acceptance testing runs the system with users, so it is dynamic.
- C. Performance testing measures speed and load, which needs the software to run.
- D. Dynamic testing runs the software, which reviews and static analysis do not.
Tip: Static = no execution (reviews, analysis); dynamic = the software is run.
Question 8Medium
Increasing load well beyond the system's design capacity to find its breaking point and see how it recovers is:
- Soak testing
- Smoke testing
- Stress testing
- Load testing
Answer: C. Stress testing
Explanation
Stress testing deliberately overloads the system to observe failure behaviour and recovery.
Step-by-step solution
- The load is pushed well beyond the design capacity.
- The aim is to find the breaking point and see how the system recovers.
- That describes stress testing: option C.
Why the other options are wrong
- A. Soak testing checks behaviour over a long period, not a breaking point.
- B. Smoke testing is a quick stability check, not an overload test.
- D. Load testing targets the expected load, not loads beyond design capacity.
Tip: Stress = beyond the limit; load = at the expected level.
Question 9Hard
The application crashes when a user exports a report in a format used by only one legacy customer, and a workaround exists. The fix is scheduled for a later release. This defect is:
- Low severity, high priority
- Low severity, low priority
- High severity, high priority
- High severity, low priority
Answer: D. High severity, low priority
Explanation
A crash is technically severe, but the limited business impact and the workaround make it low priority.
Step-by-step solution
- The crash affects only one legacy customer's format, so business impact is limited.
- A crash is technically severe, so severity is high.
- A workaround exists and the fix is scheduled for a later release, so priority is low.
- That is high severity, low priority: option D.
Why the other options are wrong
- A. A crash is technically severe, so the severity is not low.
- B. A crash is technically severe, so the severity is not low.
- C. With a workaround and a later fix date, the priority is not high.
Tip: Severity and priority can differ: a severe defect can still be low priority when few users hit it and a workaround exists.
Question 10Hard
A system runs at normal load for 48 hours so the team can detect memory leaks and slow degradation. This is:
- Smoke testing
- Endurance (soak) testing
- Volume testing
- Spike testing
Answer: B. Endurance (soak) testing
Explanation
Soak testing applies sustained load over a long period, revealing problems such as leaks that short tests miss.
Step-by-step solution
- Long run at normal load.
- Goal is memory leaks and slow degradation.
- That is endurance (soak) testing.
Why the other options are wrong
- A. Smoke testing is a quick check that the build basically works.
- C. Volume testing uses large amounts of data, not long duration.
- D. Spike testing applies sudden load jumps.
Tip: Long time + normal load = soak.
Practise all 17 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 →