Tag: testing

Questions Related to testing

In prioritizing what to test, the most important objective is to:

  1. find as many faults as possible.

  2. test high risk areas.

  3. obtain good test coverage.

  4. test whatever is easiest to test


Correct Option: B

Which one of the following statements about system testing is NOT true?

  1. System tests are often performed by independent teams.

  2. Functional testing is used more than structural testing.

  3. End-users should be involved in system tests

  4. Faults found during system tests can be very expensive to fix.


Correct Option: C

Which of the following is likely to benefit most from the use of test tools providing test capture and replay facilities?

  1. Integration testing

  2. Regression testing

  3. System testing

  4. User acceptance testing


Correct Option: B

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) Integration testing - This option is incorrect because integration testing focuses on testing the interaction between different components or modules of a system. Test capture and replay facilities may not be as beneficial for integration testing as they are for other types of testing.

Option B) Regression testing - This option is correct because regression testing involves retesting the previously tested functionalities to ensure that any changes or additions to the system have not introduced new defects. Test capture and replay facilities can be highly beneficial for regression testing as they allow testers to quickly and accurately repeat the previously executed tests.

Option C) System testing - This option is incorrect because system testing involves testing the entire system as a whole to ensure that it meets the specified requirements. While test capture and replay facilities can be useful for system testing, they are not specifically designed for this type of testing.

Option D) User acceptance testing - This option is incorrect because user acceptance testing focuses on verifying that the system meets the requirements and expectations of the end-users. Test capture and replay facilities may not be as beneficial for user acceptance testing as they are for regression testing.

The correct answer is B) Regression testing. This option is correct because test capture and replay facilities can significantly benefit regression testing by allowing testers to efficiently repeat previously executed tests.

Alpha testing is:

  1. the first testing that is performed.

  2. pre-release testing by end user representatives at the developer’s site.

  3. post-release testing by end user representatives at the developer’s site.

  4. pre-release testing by end user representatives at their sites.


Correct Option: B

A deviation from the specified or expected behavior that is visible to end-users is called:

  1. an error

  2. a fault

  3. a failure

  4. a defect


Correct Option: C

Functional system testing is:

  1. testing that the components that comprise the system function together

  2. testing that the system functions with other systems

  3. testing the system performs functions within specified response times

  4. testing the end to end functionality of the system as a whole


Correct Option: D

What can static analysis NOT find?

  1. the use of a variable before it has been defined

  2. memory leaks

  3. unreachable (“dead”) code

  4. array bound violations


Correct Option: B

AI Explanation

To answer this question, you need to understand the concept of static analysis.

Static analysis is a technique used in software development to analyze source code or compiled code without executing it. It helps identify potential issues and vulnerabilities in the code. However, there are certain things that static analysis cannot find:

A. The use of a variable before it has been defined - Static analysis can detect if a variable is used before it has been defined, as it analyzes the code structure and dependencies.

B. Memory leaks - Static analysis is not capable of detecting memory leaks, as it requires dynamic analysis to track memory allocations and deallocations during runtime.

C. Unreachable ("dead") code - Static analysis can identify unreachable code segments, as it analyzes the control flow and dependencies within the code.

D. Array bound violations - Static analysis can detect array bound violations by analyzing the code for improper array access and index calculations.

Therefore, the correct answer is B) memory leaks. Static analysis is not capable of detecting memory leaks as it requires dynamic analysis during runtime to track memory allocations and deallocations.

The main focus of acceptance testing is:

  1. ensuring that the system is acceptable to all users

  2. testing the system with other systems

  3. finding faults in the system

  4. testing from a business perspective


Correct Option: D
  1. re-testing looks for unexpected side-effects; regression testing ensures the original fault has been removed

  2. re-testing is done after faults are fixed; regression testing is done earlier

  3. re-testing is done by developers; regression testing is done by independent testers

  4. re-testing ensures the original fault has been removed; regression testing looks for unexpected side-effects


Correct Option: D

What type of review requires formal entry and exit criteria, including metrics:

  1. management review

  2. walkthrough

  3. inspection

  4. post project review


Correct Option: C