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. a. Characteristics of reported bugs

  2. b. Characteristics of the product

  3. c. Characteristics of the development process

  4. d. The outcome of testing

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

Testing effort is fundamentally driven by product complexity, development process maturity, and desired testing outcomes. Characteristics of reported bugs (severity, frequency, type) are a result of testing, not a factor that determines how much effort is required to plan and execute testing in the first place.

Multiple choice technology
  1. Copying the jars to respective servers

  2. Deploying the code

  3. Execute the TNS

  4. Merge the code from development branch to release branch

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

Before deploying to system test, code must first be merged from the development branch to the release branch. This ensures the code to be tested is properly versioned and approved. Copying jars, deploying, or executing TNS happen after the merge.

Multiple choice technology testing
  1. to show that system will work after release

  2. to decide when the software is of sufficient quality to release

  3. to find as many bugs as possible before release

  4. to give information for a risk based decision about release

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

Testing provides stakeholders with information about the quality and risks associated with releasing software, enabling informed risk-based decisions. Option A is incorrect because testing cannot guarantee a system will work after release. Option B partially captures the purpose but is less precise than D. Option C describes a goal of testing but not its main reason - testing informs release decisions rather than just finding bugs.

Multiple choice technology testing
  1. IEEE829

  2. IEEE827

  3. BS7925-1

  4. BS7925-2

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

IEEE829 is the standard for software test documentation, BS7925-1 covers vocabulary for software testing, and BS7925-2 addresses software component testing. IEEE827 is not a testing-related standard - it refers to a different IEEE standard unrelated to software testing practices.

Multiple choice technology testing
  1. Faults in program specifications are the most expensive to fix.

  2. Faults in code are the most expensive to fix

  3. Faults in requirements are the most expensive to fix

  4. Faults in designs are the most expensive to fix

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

Faults in requirements are the most expensive to fix because they affect all downstream phases - specifications, design, implementation, and testing. The earlier a fault is introduced, the more widespread its impact and the higher the cost to correct it later. Faults in specifications, designs, or code are progressively less expensive to fix than requirements faults.

Multiple choice technology web technology
  1. Large

  2. Small

  3. Difficult to write

  4. Difficult to test

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

Cyclomatic complexity measures the number of independent paths through source code. Programs with high cyclomatic complexity have many decision points and execution paths, making them difficult to test thoroughly because each path needs to be validated. Size (large or small) does not directly correlate with cyclomatic complexity, and difficulty in writing is not the primary concern.

Multiple choice technology testing
  1. should be able to understand a functional specification or requirements document

  2. should be able to understand the source code.

  3. is highly motivated to find faults

  4. is creative to find the system’s weaknesses

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

Black-box testing focuses solely on inputs and outputs without examining the internal code structure. Therefore, a black-box tester does not need to understand or read the source code. Distractors describe valid characteristics like analyzing requirements or finding system weaknesses.

Multiple choice technology testing
  1. needs configuration management just like requirements, design and code

  2. should be newly constructed for each new version of the software

  3. is needed only until the software is released into production or use

  4. does not need to be documented and commented, as it does not form part of the released

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

To answer this question, the user needs to have knowledge about testware, which refers to the artifacts developed during the testing process, including test cases and test datasets.

Now, let's go through each option and explain why it is right or wrong:

A. needs configuration management just like requirements, design and code: This option is correct. Testware, just like other software artifacts, should be managed through configuration management to keep track of changes, versions, and releases.

B. should be newly constructed for each new version of the software: This option is incorrect. Testware should be reused as much as possible to save time and resources. However, it should be updated and modified as necessary for each new version of the software.

C. is needed only until the software is released into production or use: This option is incorrect. Testware is needed throughout the software development lifecycle, including after the software is released, for maintenance and future updates.

D. does not need to be documented and commented, as it does not form part of the released: This option is incorrect. Testware, like any other software artifact, should be documented and commented to explain its purpose, functionality, and usage.

Therefore, the correct answer is:

The Answer is: A

Multiple choice technology testing
  1. only records defects

  2. is of limited value

  3. is a valuable source of project information during testing if it contains all incidents

  4. should be used only by the test team.

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

To understand this question, the user needs to know what an incident logging system is and its purpose. An incident logging system is a tool used to record and track defects or issues that occur during the software development lifecycle. It provides a centralized location to manage and resolve incidents, allowing teams to identify and address problems more efficiently.

Now, let's go through each option and explain why it is right or wrong:

A) only records defects: This option is incorrect. While an incident logging system is primarily used to record and track defects, it can also be used to capture other issues, such as requirements gaps, design flaws, and usability problems.

B) is of limited value: This option is incorrect. An incident logging system is a critical tool for managing defects and issues during the software development lifecycle. It provides value by allowing teams to capture, track, and resolve incidents more effectively, which can improve software quality and reduce development costs.

C) is a valuable source of project information during testing if it contains all incidents: This option is correct. An incident logging system that captures all incidents can provide valuable insights into the quality of the software being tested. By analyzing the types and frequency of incidents, teams can identify trends and areas that require further attention. This information can be used to improve the testing process, highlight areas for improvement, and make informed decisions about the software's readiness for release.

D) should be used only by the test team: This option is incorrect. While the test team is responsible for managing the incident logging system, other stakeholders, such as developers, project managers, and business analysts, can benefit from the information it provides. By sharing incident reports and metrics, teams can collaborate more effectively and make informed decisions about the software's quality and readiness for release.

The Answer is: C

Multiple choice technology testing
  1. reducing test time

  2. no change

  3. increase test time

  4. can't say

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

Higher-quality development methods (like code reviews, static analysis, test-driven development) prevent defects from entering the code in the first place. Fewer defects mean less time spent finding, reporting, and retesting bugs during formal testing phases. Prevention is cheaper than detection.

Multiple choice technology testing
  1. the higher the risk, the earlier the test coverage

  2. the lower the risk, the earlier the test coverage

  3. Both the above

  4. None of the above

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

Risk-based testing prioritizes testing efforts based on the level of risk associated with each feature or requirement. Higher-risk areas require more thorough and earlier testing to mitigate potential failures. Option A correctly states that higher risk items receive earlier test coverage, which is the fundamental principle of risk-based testing.

Multiple choice technology testing
  1. Only once at the beginning of the test phase

  2. Only once at the end of the test phase

  3. Only Once at the end of project closure

  4. As detailed in test strategy & ad-hoc basis where needed

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

In Risk-Based Testing (RBT), risk identification is an ongoing process that occurs throughout the lifecycle. It is defined in the initial test strategy and continuously performed on an ad-hoc basis as new risks emerge. Distractors stating it occurs only once are incorrect.

Multiple choice technology testing
  1. Impact * Probability of failure

  2. Impact * Solution

  3. Impact * Requirement

  4. Impact * Test level

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

Risk level is calculated by multiplying the impact of failure by the probability of failure. This formula Risk = Impact × Probability is standard in risk assessment methodologies. Option A correctly states this calculation, while other options incorrectly multiply impact with unrelated factors like Solution, Requirement, or Test level.

Multiple choice technology testing
  1. a) Breadth Test and Depth Test

  2. b) Retesting

  3. c) Confirmation Testing

  4. d) Sanity Testing

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

Maintenance Testing uses two main methodologies: Breadth Testing (testing all affected areas broadly) and Depth Testing (deep testing of specific changed areas). Options b, c, and d describe other testing types but not the specific methodologies for maintenance testing. Option A correctly identifies the two primary approaches used when maintaining existing software.

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

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

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

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

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

Formal reviews require participants to prepare materials in advance, making statement ii false. The review is led by a trained moderator who is not the author (i true), follows a formal process for follow-up actions (iii true), and its primary goal is defect detection (iv true).