Computer Knowledge

Software Testing and Quality Control

2,292 Questions

Software testing and quality control questions cover testing methodologies, unit testing, and defect management. These concepts are crucial for the computer knowledge sections of competitive exams. Practice these questions to understand verification and validation processes thoroughly.

Quality control typesUnit testing purposeSoftware vulnerability testingTest planning tasksLoop testing criteriaTest harness functions

Software Testing and Quality Control Questions

Multiple choice technology testing
  1. Will always be automated

  2. Will help ensure unchanged areas of the software have not been affected

  3. Will help ensure changed areas of the software have not been affected

  4. Can only be run during user acceptance testing

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Regression testing is performed specifically to verify that modifications, bug fixes, or updates in one part of the code have not adversely affected existing, unchanged features. It does not focus on testing new changes directly, nor is it restricted to automation or UAT.

Multiple choice technology testing
  1. Component testing should be performed by development

  2. Component testing is also know as isolation or module testing

  3. Component testing should have completion criteria planned

  4. Component testing does not involve regression testing

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The statement 'Component testing does not involve regression testing' is false. Component testing absolutely includes regression testing to ensure that changes or fixes to a component don't introduce new defects. The other statements are generally true: component testing is often done by developers, is also called module/isolation testing, and should have planned completion criteria.

Multiple choice technology testing
  1. A black box testing technique used only by developers

  2. A black box testing technique than can only be used during system testing

  3. A black box testing technique appropriate to all levels of testing

  4. A white box testing technique appropriate for component testing

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Equivalence partitioning is a black box testing technique that divides input data into valid and invalid classes (partitions). It's appropriate for all testing levels - unit, integration, system, and acceptance testing. It's not restricted to developers, system testing, or white box techniques.

Multiple choice technology testing
  1. You shorten the time required for testing

  2. You do more effective testing

  3. You find more faults

  4. You do the best testing in the time available

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Test prioritization is primarily about making the best use of limited time. By prioritizing, you ensure the most critical tests are executed first, maximizing value within the available time window. It's not necessarily about shortening time, finding more faults inherently, or just being more effective - it's about optimization under constraint.

Multiple choice technology testing
  1. White box

  2. Black box

  3. Green box

  4. Yellow box

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Cyclomatic Complexity is a structural metric calculated from the control flow graph of code (based on nodes, edges, and connected components). Since it requires knowledge of code structure and control flow, it's fundamentally a white box testing technique used for code coverage analysis and complexity measurement.

Multiple choice technology testing
  1. Testing can show that defects are present

  2. Testing can prove that there are no defects

  3. Testing helps in reducing the probability of undiscovered errors in the software

  4. Testing cannot prove that there are no defects

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Option B states 'Testing can prove that there are no defects' which is INCORRECT. This is a fundamental principle in software testing: testing can never prove the complete absence of defects. Testing can only show the presence of defects (option A), reduce probability of undiscovered errors (option C), but cannot guarantee zero defects (option D). The question asks for the incorrect statement, so B is the correct choice.

Multiple choice technology testing
  1. Equivalance Partitioning

  2. Boundary Value Analysis

  3. Statement Coverage

  4. Decision table Testing

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Statement Coverage is a white-box testing technique that requires examining the internal code structure to ensure each statement is executed. Black-box testing techniques (equivalence partitioning, boundary value analysis, decision tables) focus on inputs and outputs without seeing the code. Therefore, Statement Coverage does not come under black-box testing.

Multiple choice technology testing
  1. Making decisions based on information from test monitoring.

  2. Percentage of work done in test environment preparation

  3. Analysing information and metrics to support recommendations and decisions about future

  4. Setting an entry criterion requiring fixes to have been retested

Reveal answer Fill a bubble to check yourself
A,D Correct answer
Explanation

Test Control activities involve making decisions during test execution based on monitoring information. This includes setting entry criteria like requiring retest of fixes before proceeding. Test preparation completion percentage and analysis for future recommendations are test management or evaluation activities, not direct test control.

Multiple choice technology testing
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

White box testing is a structural technique that examines internal code structure, logic, and implementation. It requires knowledge of the system's internal workings. Specification-based testing is black box testing, which relies on external requirements without accessing internal code. The statement incorrectly categorizes white box as specification-based.

Multiple choice technology testing
  1. Use case testing

  2. Boundary value analysis

  3. State transition testing

  4. Decision table testing

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

State transition testing is extensively used in embedded software because embedded systems typically have well-defined states and state-dependent behavior. Techniques like use case testing, boundary value analysis, and decision table testing are useful but state transition is particularly well-suited for systems with state machines.

Multiple choice technology testing
  1. Poor software characteristics comes under product risk

  2. Failure to follow up on information found in testing and reviews comes under product risk

  3. Problems in defining the right requirements comes under project risk

  4. The quality of the design, code and tests comes under project risk

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Poor software characteristics are product risks as they affect the final software quality. Problems defining requirements are project risks affecting development process. Design and code quality are project risks. However, failure to follow up on testing findings is a project risk (process issue), not product risk. Option B incorrectly categorizes it as product risk.

Multiple choice technology testing
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Testing is highly context-dependent. The testing approach varies based on domain (safety-critical vs e-commerce), system type (embedded vs web), regulatory requirements, organizational culture, and available resources. A one-size-fits-all approach doesn't work across different contexts.

Multiple choice technology testing
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Test closure activities include finalizing and archiving testware for future reuse. This ensures test artifacts are properly documented, stored, and retrievable for regression testing, audits, or future project reference. Archiving test environment and infrastructure details is part of these closure activities.

Multiple choice technology testing
  1. Finding defects

  2. Fixing defects

  3. Gaining confidence about the level of quality

  4. Preventing defects

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Testing objectives include finding defects, gaining confidence about quality, and preventing defects. Fixing defects is a development activity, not a testing objective - testers identify issues but developers fix them.