Testing Levels Questions with Answers

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

Sample questions

Question 1Easy

In top-down integration testing, a dummy module that stands in for a lower-level module not yet developed is called a:

  1. Mock user
  2. Stub
  3. Driver
  4. Harness log

Answer: B. Stub

Explanation

Top-down integration starts from the main module, so missing called modules are replaced by stubs that return canned responses.

Step-by-step solution

  1. Top-down integration starts at the main module.
  2. The modules it calls are not built yet.
  3. A stub stands in for each missing lower module and returns canned answers.
  4. The term is a stub: option B.

Why the other options are wrong

  • A. A mock user is not a testing term for replacing a module.
  • C. A driver calls a lower module; it is used in bottom-up testing.
  • D. A harness log records results; it does not stand in for a module.

Tip: Top-down uses stubs for missing lower modules; bottom-up uses drivers to call the modules under test.

Question 2Easy

In bottom-up integration testing, which dummy component is needed?

  1. A test oracle only
  2. A stub that replaces the lower-level module
  3. A load generator
  4. A driver that calls the lower-level module

Answer: D. A driver that calls the lower-level module

Explanation

Bottom-up integration tests low-level modules first; drivers simulate the higher-level modules that would normally call them.

Step-by-step solution

  1. Bottom-up testing starts with lower modules, before upper ones exist.
  2. Something must call the lower module: a driver.
  3. Stubs replace called modules in top-down testing.

Why the other options are wrong

  • A. An oracle gives expected results, it is not the dummy caller.
  • B. A stub replaces a lower module, used in top-down testing.
  • C. A load generator is for performance testing.

Tip: Driver drives from above; stub stands in below.

Question 3Easy

Alpha testing is performed:

  1. Before unit testing
  2. By users or testers at the developer's site
  3. By real users at their own sites after release
  4. Only by automated scripts

Answer: B. By users or testers at the developer's site

Explanation

Alpha testing happens in-house in a controlled environment; beta testing is done by real users in their own environment.

Step-by-step solution

  1. Alpha testing is the first round of user testing.
  2. It is done in-house, by users or testers at the developer's site.
  3. That matches option B.

Why the other options are wrong

  • A. Alpha testing runs on a built system, so it comes after unit testing, not before.
  • C. Real users at their own sites is beta testing.
  • D. Alpha testing involves people using the product, not only automated scripts.

Tip: Alpha = in-house at the developer's site; beta = real users at their own sites.

Question 4Easy

What is the correct order of the main testing levels?

  1. Integration, unit, acceptance, system
  2. Unit, integration, system, acceptance
  3. System, unit, integration, acceptance
  4. Acceptance, system, integration, unit

Answer: B. Unit, integration, system, acceptance

Explanation

Testing proceeds from the smallest parts (units), to their interactions (integration), to the complete system, and finally to user acceptance.

Step-by-step solution

  1. Testing starts with the smallest parts: unit testing.
  2. Then the parts are checked together: integration testing.
  3. Then the complete product: system testing, and finally user acceptance testing.
  4. The correct order is Unit, integration, system, acceptance: option B.

Why the other options are wrong

  • A. Integration testing needs units to be tested first, so it cannot come first.
  • C. System testing checks the whole product, so it comes after units and integration.
  • D. Acceptance testing is the last stage, not the first.

Tip: Order of levels: smallest part first, whole product and user acceptance last.

Question 5Medium

User Acceptance Testing (UAT) mainly answers which question?

  1. Does each function return the right value for its inputs?
  2. Do two modules pass parameters correctly?
  3. Does the system meet the business needs so that the customer will accept it?
  4. Is the code formatted to the style guide?

Answer: C. Does the system meet the business needs so that the customer will accept it?

Explanation

UAT is validation by business users, deciding whether the software is fit for purpose and ready to go live.

Step-by-step solution

  1. UAT is validation done by business users or the customer.
  2. It asks whether the system meets business needs so the customer will accept it.
  3. That is option C.

Why the other options are wrong

  • A. Checking each function's output for its inputs is unit testing.
  • B. Checking parameter passing between modules is integration testing.
  • D. Checking code formatting is a static review, not acceptance testing.

Tip: UAT asks: does it meet the business need, and will the customer accept it?

Question 6Medium

Beta testing is best described as:

  1. A white-box test of every branch
  2. Testing by a limited group of real users in their own environment before general release
  3. Testing by developers at their desks
  4. Testing by the development team at its own site, in a controlled lab, before any outside user sees the product

Answer: B. Testing by a limited group of real users in their own environment before general release

Explanation

Beta testers use the product under real conditions and report issues the controlled environment did not reveal.

Step-by-step solution

  1. Beta testing is done by real users.
  2. It happens in their own environment, not in the developer's lab.
  3. It is done by a limited group before general release: option B.

Why the other options are wrong

  • A. A white-box test of every branch is a structural technique, not beta testing.
  • C. Developers testing at their desks is internal testing.
  • D. Testing at the developer's site in a controlled lab is alpha testing.

Tip: Beta = real users, in their own environment, before release.

Question 7Medium

Operational acceptance testing (OAT) focuses on:

  1. Checking that the user interface colours, fonts and layouts match the approved brand guidelines
  2. Checking individual loops inside a function
  3. Code review of each pull request
  4. Backup, recovery, maintainability and other operational readiness concerns

Answer: D. Backup, recovery, maintainability and other operational readiness concerns

Explanation

OAT checks that the system can be operated and supported in production, such as backups, failover and monitoring.

Step-by-step solution

  1. OAT checks whether the system can be operated and supported in production.
  2. Examples are backup, recovery, maintainability and monitoring.
  3. Option D lists these operational concerns: the correct answer.

Why the other options are wrong

  • A. Brand colours, fonts and layouts are UI checks, not operational readiness.
  • B. Checking loops inside a function is unit-level testing.
  • C. Code review of each pull request is a static review, not OAT.

Tip: OAT asks: can we run, back up and support this in production?

Question 8Medium

Component (unit) tests are often written before the code in Test-Driven Development. What is the TDD cycle?

  1. Red (write a failing test), Green (make it pass), Refactor
  2. Write all the code, then write the tests, then fix every failing test
  3. Code, Test, Deploy
  4. Plan, Do, Check, Act

Answer: A. Red (write a failing test), Green (make it pass), Refactor

Explanation

TDD writes a failing test first, then the minimum code to pass it, then cleans up the code while keeping the tests green.

Step-by-step solution

  1. TDD starts by writing a test that fails: Red.
  2. Then write the minimum code to make it pass: Green.
  3. Then clean up the code while the tests still pass: Refactor.
  4. The cycle is Red, Green, Refactor: option A.

Why the other options are wrong

  • B. TDD writes the tests before the code, not after.
  • C. Code, Test, Deploy is a delivery sequence, not the TDD cycle.
  • D. Plan, Do, Check, Act is the PDCA cycle, not TDD.

Tip: TDD cycle: red, green, refactor.

Question 9Hard

A key advantage of top-down integration testing over bottom-up is that:

  1. It needs no test planning
  2. Low-level utility modules are tested first and thoroughly, so no stubs or drivers are ever needed
  3. No stubs are needed at all
  4. An early skeleton of the whole system, including major control flow, can be demonstrated

Answer: D. An early skeleton of the whole system, including major control flow, can be demonstrated

Explanation

Starting from the top produces an early working skeleton; the cost is writing stubs, and low-level modules get tested late.

Step-by-step solution

  1. Top-down testing starts from the main control module.
  2. The main flow of the system can be built and shown early as a skeleton.
  3. The advantage named in the question is that this early skeleton can be demonstrated: option D.

Why the other options are wrong

  • A. Test planning is still needed with top-down testing.
  • B. Top-down tests low-level modules late, and it still needs stubs.
  • C. Top-down testing needs stubs for lower modules that are not yet built.

Tip: Top-down gives an early demo of the main flow; the cost is writing stubs.

Question 10Hard

Which statement about verification and validation is correct?

  1. Validation happens only during unit testing
  2. Verification is done only by end users after release, whereas validation is done only by developers during unit testing
  3. Verification asks 'Are we building the product right?'; validation asks 'Are we building the right product?'
  4. Verification involves executing code; validation never does

Answer: C. Verification asks 'Are we building the product right?'; validation asks 'Are we building the right product?'

Explanation

- Verification checks conformance to specifications (often through reviews and inspections);
- validation checks that the product meets user needs.

Step-by-step solution

  1. Verification checks the product against its specifications: are we building it right?
  2. Validation checks it against user needs: are we building the right product?
  3. Option C states these two questions correctly.

Why the other options are wrong

  • A. Validation is not limited to unit testing; it covers the whole product.
  • B. Verification is not only done after release, and validation is not only done by developers.
  • D. Validation runs the product with users, so it does execute code.

Tip: Verification = building it right (against specs); validation = building the right thing (for users).

Practise all 14 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