Computer Knowledge

Software Testing and Quality Control

2,598 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. 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. Evaluating exit criteria and reporting

  2. Ongoing activity of comparing actual progress against the plan

  3. The test cases need to be revised and reviewed regularly inorder to find more defects

  4. A process followed in test plan

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

The Pesticide Paradox in software testing states that if the same tests are repeated repeatedly, eventually they will no longer find new defects because the software becomes 'immune' to those specific tests. To combat this, test cases must be regularly revised and reviewed to discover new defects. Options A and B describe other testing activities, while D is too vague.

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.

Multiple choice technology testing
  1. Black box testing

  2. System testing

  3. Independent testing

  4. Acceptance Testing

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

Acceptance Testing is the testing phase that demonstrates system compliance with user requirements. It is the final testing stage where the system is validated against the agreed-upon requirements before it goes into production. This differs from black box, system, or independent testing which focus on different aspects of quality.

Multiple choice technology testing
  1. True

  2. False

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

The statement is True in a theoretical sense - complete validation would require testing every possible input in the domain. However, this is practically impossible for most programs due to the infinite or extremely large number of possible inputs. This represents an ideal theoretical goal rather than an achievable testing practice.

Multiple choice technology testing
  1. Reviews

  2. Testing

  3. Both

  4. None of the above

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

Testing is more effective than reviews for locating errors that span modules because reviews typically examine individual modules or components in isolation. Testing can actually execute the interactions between modules, making it better at discovering integration and interface problems that occur when different parts of the system work together.