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. Test coverage criteria can be measured in terms of items exercised by a test suite.

  2. A measure of test coverage criteria is the percentage of user requirements covered.

  3. A measure of test coverage criteria is the percentage of faults found.

  4. Test coverage criteria are often used when specifying test completion criteria.

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

Test coverage criteria measure the extent to which test exercises specific structural elements (statements, branches, paths, requirements). Options A, B, and D describe valid coverage measurements: items exercised by tests, percentage of user requirements covered, and completion criteria. Percentage of faults found (C) is NOT a test coverage criterion - it measures test effectiveness, not coverage. Coverage is about what's tested, not what's found.

Multiple choice technology testing
  1. find as many faults as possible.

  2. test high risk areas.

  3. obtain good test coverage.

  4. test whatever is easiest to test.

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

Risk-based testing prioritizes areas with the highest probability and impact of failure. While coverage and finding faults are important goals, managing project and product risks is the primary driver of prioritization to optimize limited testing resources effectively.

Multiple choice technology testing
  1. v-3,w-2,x-1,y-5,z-4

  2. v-2,w-5,x-1,y-4,z-3

  3. v-3,w-4,x-1,y-5,z-2

  4. v-2,w-1,x-4,y-3,z-5

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

Test control involves adjusting resources when tests overrun, so v pairs with 3. Test monitoring involves reporting deviations, so w pairs with 4. Test estimation is calculating required resources, so x pairs with 1. Incident management tracks anomalous results, so y pairs with 5. Configuration control maintains records, so z pairs with 2. Option C correctly matches all these pairs.

Multiple choice technology testing
  1. System tests are often performed by independent teams.

  2. Functional testing is used more than structural testing.

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

  4. End-users should be involved in system tests.

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

System testing is typically performed by independent test teams (A is true). Functional (black-box) testing is indeed used more than structural (white-box) testing in system testing (B is true). Faults found during system testing are very expensive to fix because they're found late (C is true). However, end-users are typically involved in acceptance testing, not system testing - system testing is conducted by the test team against specifications, making D the statement that is NOT true.

Multiple choice technology testing
  1. Incidents should always be fixed.

  2. An incident occurs when expected and actual results differ.

  3. Incidents can be analysed to assist in test process improvement.

  4. An incident can be raised against documentation.

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

Not all incidents must be fixed; they can be rejected, deferred, or accepted as known limitations. The other statements correctly define incidents as discrepancies between expected and actual results, which can apply to documentation and assist in process improvement.

Multiple choice technology testing
  1. time runs out.

  2. the required level of confidence has been achieved.

  3. no more faults are found.

  4. the users won’t find any serious faults.

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

Testing is complete when the required level of confidence has been achieved (B is correct). Running out of time (A) is a constraint, not a completion criterion. Finding no more faults (C) is unrealistic - you can never prove absence of faults. The assumption that users won't find serious faults (D) is also not a valid completion criterion. Testing is complete when stakeholder requirements are met and risk is acceptable.

Multiple choice technology testing
  1. Incident resolution is the responsibility of the author of the software under test.

  2. Incidents may be raised against user requirements.

  3. Incidents require investigation and/or correction.

  4. Incidents are raised when expected and actual results differ.

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

Incidents can be raised against requirements (B is true - ambiguous or incorrect requirements). Incidents do require investigation and correction (C is true). Incidents are raised when expected and actual results differ (D is true - this is the definition). However, incident resolution is NOT the responsibility of the software author (A is false) - it's typically the responsibility of the developer assigned to fix it, not necessarily the original author.

Multiple choice technology testing
  1. syntax testing

  2. equivalence partitioning

  3. stress testing

  4. modified condition/decision coverage

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

Syntax testing (A) is described in unit test standards. Equivalence partitioning (B) is a standard technique covered. Modified condition/decision coverage (D) is a white-box technique in unit test standards. However, stress testing (C) is typically a system or performance testing technique, not a unit test standard - unit tests focus on individual components, not system-wide stress conditions.

Multiple choice technology testing
  1. In a system two different failures may have different severities.

  2. A system is necessarily more reliable after debugging for the removal of a fault.

  3. A fault need not affect the reliability of a system.

  4. Undetected errors may lead to faults and eventually to incorrect behaviour.

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

Different failures can indeed have different severities (A is true). A fault need not affect reliability if it's in rarely-used code (C is true). Undetected errors can lead to faults and incorrect behavior (D is true). However, debugging does not necessarily improve reliability (B is false) - the famous 'debugging paradox' where attempting to fix a fault can introduce new faults, potentially decreasing reliability.

Multiple choice technology testing
  1. They are used to support multi-user testing.

  2. They are used to capture and animate user requirements.

  3. They are the most frequently purchased types of CAST tool.

  4. They capture aspects of user behaviour.

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

Capture-replay tools support multi-user testing (A is true). They are frequently purchased CAST tools (C is true). They capture user behavior (D is true). However, they are NOT used to capture and animate user requirements (B is false) - they capture and replay test inputs, not requirements visualization. Requirements animation is done with prototyping tools, not capture-replay.

Multiple choice technology testing
  1. Metrics from previous similar projects

  2. Discussions with the development team

  3. Time allocated for regression testing

  4. a & b

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

Metrics from similar projects (A) help estimate re-testing needed. Discussions with developers (B) help understand what changed and what needs re-testing. Time allocated for regression testing (C) is a budget, not an estimation method. Therefore both A and B together (D) provide the best estimation approach.

Multiple choice technology testing
  1. They are cheapest to find in the early development phases and the most expensive to fix in the latest test phases.

  2. They are easiest to find during system testing but the most expensive to fix then.

  3. Faults are cheapest to find in the early development phases but the most expensive to fix then.

  4. Although faults are most expensive to find during early development phases, they are cheapest to fix then.

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

Finding and fixing faults early in the development lifecycle (such as during requirements or design) is significantly cheaper than resolving them in later test phases or post-release. Fixing bugs late requires expensive rework across multiple development phases.

Multiple choice technology testing
  1. To find faults in the software.

  2. To assess whether the software is ready for release.

  3. To demonstrate that the software doesn’t work.

  4. To prove that the software is correct.

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

Testing can show the presence of defects but cannot prove their absence or that software is entirely correct. Finding faults, assessing release readiness, and demonstrating failures are standard testing objectives, whereas proving absolute correctness is mathematically and practically impossible.

Multiple choice technology testing
  1. Boundary value analysis

  2. Usability testing

  3. Performance testing

  4. Security testing

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

Boundary value analysis (A) is a functional testing technique - it tests at input/output boundaries. Usability testing (B) is non-functional. Performance testing (C) is non-functional. Security testing (D) is non-functional. Only boundary value analysis is functional testing among these options.

Multiple choice technology testing
  1. Features to be tested

  2. Incident reports

  3. Risks

  4. Schedule Reports

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

Features to be tested (A) are definitely in a test plan. Risks (B) should be in a test plan. Schedule (D mentioned as 'Schedule Reports') is in a test plan. However, incident reports (B is correct choice) are OUTPUTS of testing, not part of the plan itself - they are created during test execution, not planned beforehand.