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. a. Automate if you can.

  2. b. Combine test cases.

  3. c. Designate some tests for periodic testing.

  4. d. All the above

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

Regression testing time can be effectively reduced through three key approaches: automation eliminates manual execution overhead, combining test cases reduces redundant setup and teardown, and periodic testing allows critical tests to run on a schedule rather than in every cycle. All three methods are valid and complementary strategies used in practice.

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. Static

  2. Tertiary

  3. Dynamic

  4. Both 1 and 3

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

Descriptive programming in QTP has two types: Static (where properties are hardcoded in the script) and Dynamic (where properties are built programmatically at runtime). Both approaches eliminate the need for an object repository. Option B (Tertiary) is not a valid type of descriptive programming.

Multiple choice technology testing
  1. Programmatic descriptions for parent object and the child object is referred in Object Repository

  2. Programmatic descriptions for both parent object and the child objects

  3. Parent object is referred in Object Repository and the programmatic descriptions for child object

  4. None of the above

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

When using descriptive programming in QTP/UFT, we can describe all objects in the hierarchy programmatically, or describe the child programmatically while referencing its parent from the Object Repository. Once a child is described programmatically, its descendants must also be programmatically described.

Multiple choice technology testing
  1. Property Object

  2. Property Name

  3. Property Value

  4. Dynamic Property

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

In QTP/UFT, using Description.Create() instantiates a Properties collection object (often referred to as a Description object or Property Object) that dynamically defines object properties. It is not a single property name, a single property value, or a dynamic property itself.

Multiple choice technology testing
  1. Set

  2. Property Object

  3. Count

  4. ChildObjects

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

The ChildObjects method in QTP retrieves all child objects within a parent container that match specified description criteria. It returns a collection of objects that can be iterated through programmatically. Property objects are used for defining descriptions, Set assigns object references, and Count returns the number of items.

Multiple choice technology testing
  1. Third

  2. First

  3. Second

  4. Last

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

In QTP's descriptive programming, Index is 0-based, so Index:=1 refers to the second occurrence of a WebEdit object on the page. Index:=0 would be the first WebEdit. This indexing allows selecting specific instances when multiple objects with similar descriptions exist on the same page.

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