Testing Types Questions with Answers

17 practice questions on Testing Types (Software Engineering & Testing) with answers and step-by-step solutions. Try 10 samples below, then practise all 17 free in the AptiNest app.

Sample questions

Question 1Easy

Black-box testing designs test cases based on:

  1. The database schema only
  2. The internal code paths, branches and loop structures of the program
  3. The compiler's optimisation settings
  4. 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

  1. Black-box testing treats the program as opaque.
  2. 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:

  1. Regression testing
  2. Exploratory testing
  3. Load testing
  4. 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

  1. No formal test cases are scripted.
  2. Learning, design and execution happen together.
  3. 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:

  1. Alpha testing
  2. Regression testing
  3. Smoke testing
  4. Exploratory testing

Answer: B. Regression testing

Explanation

Regression testing checks that changes have not broken existing functionality.

Step-by-step solution

  1. The team re-runs previously passing tests after a fix.
  2. The goal is to find side effects that the change may have caused elsewhere.
  3. 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?

  1. Decision table testing
  2. Branch coverage testing
  3. Boundary value analysis
  4. 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

  1. White-box testing uses knowledge of the code's internal structure.
  2. Branch coverage checks that each decision branch in the code is exercised.
  3. 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?

  1. Sanity testing is a narrow, focused check of specific changed functionality; smoke testing is a broad check of the whole build
  2. Sanity testing is done before unit testing
  3. They differ only in who signs off the result
  4. 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

  1. Smoke testing is broad: it checks whether the whole build is testable.
  2. Sanity testing is narrow: it checks whether a specific fix or feature behaves sensibly.
  3. 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:

  1. Stress testing
  2. Unit testing
  3. Static testing
  4. 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

  1. The expected peak load is 5,000 concurrent users.
  2. Checking response times at the expected load is load testing.
  3. 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:

  1. Static testing
  2. Acceptance testing
  3. Performance testing
  4. 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

  1. Reviews and walkthroughs examine work products without running the code.
  2. Static code analysis also examines code without running it.
  3. 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:

  1. Soak testing
  2. Smoke testing
  3. Stress testing
  4. Load testing

Answer: C. Stress testing

Explanation

Stress testing deliberately overloads the system to observe failure behaviour and recovery.

Step-by-step solution

  1. The load is pushed well beyond the design capacity.
  2. The aim is to find the breaking point and see how the system recovers.
  3. 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:

  1. Low severity, high priority
  2. Low severity, low priority
  3. High severity, high priority
  4. 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

  1. The crash affects only one legacy customer's format, so business impact is limited.
  2. A crash is technically severe, so severity is high.
  3. A workaround exists and the fix is scheduled for a later release, so priority is low.
  4. 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:

  1. Smoke testing
  2. Endurance (soak) testing
  3. Volume testing
  4. 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

  1. Long run at normal load.
  2. Goal is memory leaks and slow degradation.
  3. 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 →

Related topics

See all Software Engineering & Testing topics · All topics