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. 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 testing
  1. 17

  2. 19

  3. 24

  4. 21

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

The range of valid inputs is 18 to 25. An invalid equivalence class consists of values outside this range, specifically less than 18 or greater than 25. Thus, 17 represents an invalid equivalence class value, whereas 19, 21, and 24 represent valid equivalence class values.

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.

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

Component testing, also called unit or module testing, is performed by developers and requires planned completion criteria. It absolutely involves regression testing to ensure changes to one component don't break others. Statement D is false because regression testing is a standard part of component testing.

Multiple choice technology testing
  1. Execution

  2. Design

  3. Planning

  4. Check Exit criteria completion

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

Finding faults during the planning phase is most cost-effective because preventing defects early avoids expensive rework later. While design review also catches issues early, planning establishes the entire testing strategy and can prevent entire categories of faults. Planning is considered most cost-effective because it enables prevention at the earliest stage.

Multiple choice technology testing
  1. Being diplomatic

  2. Able to write software

  3. Having good attention to detail

  4. Able to be relied on

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

While useful technical skills, testers don't necessarily need to write production software. More critical are soft skills like diplomacy for reporting issues, attention to detail for thorough testing, and reliability for consistent execution. Technical writing skills for test documentation are more important than programming ability for most testers.