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. Measuring response time

  2. Measuring transaction rates

  3. Recovery testing

  4. Simulating many users

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

Performance testing measures system responsiveness, throughput, and stability under load. It includes response time (A), transaction rates (B), and simulating many users (D). Recovery testing (C) checks system ability to recover from failures, which is a different non-functional testing type.

Multiple choice technology testing
  1. static testing requires the running of tests through the code

  2. static testing includes desk checking

  3. static testing includes techniques such as reviews and inspections

  4. static testing can give measurements such as cyclomatic complexity

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

The question asks which statement about static testing is FALSE. Static testing does NOT require running tests through code - that's dynamic testing. Option A correctly states this false claim. Static testing includes reviews (C), desk checking (B), and can measure metrics like cyclomatic complexity (D) without code execution.

Multiple choice technology testing
  1. Measuring response time

  2. Measuring transaction rates

  3. Recovery testing

  4. Simulating many users

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

Performance testing measures system responsiveness, throughput, and stability under load. It includes response time (A), transaction rates (B), and simulating many users (D). Recovery testing (C) checks system ability to recover from failures, which is a different non-functional testing type.

Multiple choice technology testing
  1. Options i,ii,iii,iv are true

  2. i is true and ii,iii,iv are false

  3. i,ii,iii are true and iv is false

  4. ii is true and i,iii,iv are false.

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

Verification ensures that the product conforms to its specifications, which helps check the quality of the built product (statement i). Checking if we built the right product (statement ii) is validation. Developing the product (iii) and monitoring tool wastage (iv) are not verification tasks.

Multiple choice technology testing
  1. No, because they apply to development documentation

  2. No, because they are normally applied before testing

  3. No, because they do not apply to the test documentation

  4. Yes, because both help detect faults and improve quality

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

Reviews and inspections are static testing techniques that examine documents and code without executing them. Like dynamic testing, they aim to detect defects and improve quality. Option D correctly recognizes that both activities serve the same fundamental purpose - finding faults early.

Multiple choice technology testing
  1. Component Integration testing

  2. Component System Testing

  3. Component Sub System Testing

  4. Maintenance testing

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

Link testing, which involves testing the integration of individual software modules or components, is also referred to as component integration testing. System testing, sub-system testing, and maintenance testing represent different testing levels or types focused on broader scopes or modification verification.

Multiple choice technology testing
  1. Test Implementation and execution

  2. Test Analysis and Design

  3. Evaluating the Exit Criteria and reporting

  4. Test Closure Activities

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

Test Analysis and Design phase includes creating test cases, designing test environment setup, and identifying required infrastructure and tools. Test Implementation comes later when tests are executed. Option B correctly places environment design in the analysis and design phase.

Multiple choice technology testing
  1. i,ii,iii are true and iv is false

  2. i,,iv are true and ii is false

  3. i,ii are true and iii,iv are false

  4. ii,iii,iv are true and i is false

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

According to standard testing methodologies (such as ISTQB), test implementation and execution include designing test cases/procedures, creating test suites, and verifying the environment (tasks i, ii, and iii). Determining exit criteria (task iv) is part of test planning and control, not implementation/execution.

Multiple choice technology web technology
  1. static testing requires the running of tests through the code

  2. static testing includes desk checking

  3. static testing includes techniques such as reviews and inspections

  4. static testing can give measurements such as cyclomatic complexity

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

Static testing is performed without executing the code. It includes techniques like reviews, inspections, walkthroughs, and desk checking. Static analysis tools can compute metrics like cyclomatic complexity. Option A is false because static testing does NOT require running tests through code - that would be dynamic testing.

Multiple choice technology testing
  1. Checking that we are building the right system

  2. Checking that we are building the system right.

  3. Performed by an independant testing team

  4. Making sure that it is what the user really wants

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

Verification is the process of checking that the software is being built according to the specifications and requirements. This is often summarized as 'building the system right' - ensuring the implementation matches the design. Option A describes validation, which is about building the right system.

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

A regression test ensures that recent code changes have not adversely affected existing functionality. It focuses on verifying that unchanged areas of the software continue to work as expected after modifications. Option C is incorrect because regression testing specifically checks stable areas, not changed ones.

Multiple choice technology testing
  1. We cannot run the test

  2. It may be difficult to repeat the test

  3. It may be difficult to determine if the test has passed or failed

  4. We cannot automate the user inputs

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

Without an expected result defined, it becomes impossible to determine whether the actual outcome represents a pass or fail condition. The test cannot be objectively evaluated. Expected results provide the baseline for comparison in software testing.

Multiple choice technology testing
  1. 2 is a valid reason; 1,3,4 & 5 are not

  2. 1,2,3,4 are valid reasons; 5 is not

  3. 1,2,3 are valid reasons; 4 & 5 are not

  4. All of them are valid reasons for failure

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

Failures can originate from multiple sources including test design errors, implementation defects, design flaws, environmental issues, and documentation problems. All five categories represent valid potential causes of test failures. Testing faults include incorrect test data or invalid test procedures.

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

  2. You do the best testing in the time available

  3. You do more effective testing

  4. You find more faults

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

Test prioritization aims to maximize testing effectiveness within limited time constraints. By focusing on high-risk and high-value areas first, teams ensure the most critical testing is completed even if time runs out. The goal is optimal quality assurance, not merely speed or finding more faults.

Multiple choice technology testing
  1. Error guessing

  2. Walkthrough

  3. Data flow analysis

  4. Inspections

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

Static testing techniques examine software artifacts without running the code. Walkthroughs, data flow analysis, and inspections are all static methods. Error guessing is a dynamic testing technique that involves designing tests based on intuition about where defects might exist, making it the correct answer as the non-static option.