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
-
Defect Clustering
-
Pesticide Paradox
-
Both 1 & 2
-
None
D
Correct answer
Explanation
Defect Clustering and Pesticide Paradox are both established principles of testing. Defect Clustering states that a small number of modules contain most defects, while Pesticide Paradox observes that repeating the same tests eventually becomes ineffective as they stop finding new defects. Since both are valid principles, option C (Both 1 & 2) is incorrect, making D (None) the correct answer.
C
Correct answer
Explanation
WinRunner, QTP (QuickTest Professional), and RFT (Rational Functional Tester) are all functional testing tools used for automated testing of applications. QC (Quality Center), now known as ALM (Application Lifecycle Management), is a test management tool used for managing the testing process, not for executing functional tests. This makes QC the correct answer as the non-functional tool.
-
View the supported properties and methods of any object in an open application
-
Able to define object name and property
-
Helps to delete the object from object repository
-
Define an action on the displayed object
A
Correct answer
Explanation
Object Spy is a QTP diagnostic tool that allows viewing the supported properties, methods, and operations of any object in an open application. It's used for inspection and understanding object structure, not for defining actions, naming objects, or deleting from repository.
-
Cannot be inserted as calls to the original action
-
Can be called multiple times within a test and can be called from other tests
-
Can be copied and inserted as independent actions
-
All the above
B
Correct answer
Explanation
Reusable actions can be invoked multiple times within a test and from other tests, promoting modularity. They cannot be merely copied as independent actions nor are they uncallable; thus the other statements are false.
-
An Error
-
A Fault
-
A Failure
-
A Defect
-
A Mistake
C
Correct answer
Explanation
In software testing terminology, a 'Failure' is the deviation from specified or expected behavior that is visible to end-users. An error or mistake refers to the human action that caused the issue, a fault or defect is the imperfection in the code, but the observable incorrect behavior is called a failure.
-
An Error
-
A Fault
-
A Failure
-
A Defect
-
A Mistake
C
Correct answer
Explanation
A failure is the observable incorrect behavior that users see. A fault is the defect in the code that causes failures. An error is a human mistake that may introduce faults. A defect is similar to a fault, a flaw in the code. The distinction: error leads to fault leads to failure.
-
Performed by customers at their own site
-
Performed by customers at the software developer's site
-
Performed by an Independent Test Team
-
Performed as early as possible in the lifecycle
A
Correct answer
Explanation
Beta testing involves customers using the software in their own environment with real data, unlike alpha testing which is conducted at the developer's site by internal staff. Independent test teams perform testing at various stages, and early lifecycle testing is a strategy not specific to beta testing.
-
How to fix the fault
-
How to reproduce the fault
-
Test environment details
-
Severity, Priority
-
The actual and expected outcomes
A
Correct answer
Explanation
A test incident report documents the problem: what happened, not how to solve it. Essential elements include reproduction steps (B), test environment details (C), severity/priority (D), and actual vs expected results (E). The solution (how to fix) is a developer task determined during debugging, not part of the incident report.
-
Error guessing
-
Walkthrough
-
Data flow analysis
-
Inspections
A
Correct answer
Explanation
Static testing examines artifacts without running the software: walkthroughs, inspections, and data flow analysis are examples. Error guessing involves designing and executing test cases based on intuition about where defects might exist, making it a dynamic testing technique that requires running the software.
-
Poor quality software
-
Poor software and poor testing
-
Bad luck
-
Insufficient time for testing
B
Correct answer
Explanation
When users find faults, it indicates both quality issues in the software (faults exist) and gaps in the testing process (they weren't caught before release). Insufficient time (D) can contribute to poor testing, but poor quality software (A) alone doesn't explain why users found them: testing should have caught them. Bad luck (C) is not a systematic cause.
-
Execution
-
Design
-
Planning
-
Check Exit criteria completion
C
Correct answer
Explanation
Finding faults during planning is most cost‑effective because defects detected early require minimal rework. Later activities like design, execution, or exit‑criteria checks are progressively more expensive, and the other choices do not offer the lowest remediation cost.
-
Checking that we are building the right system
-
Checking that we are building the system right
-
Performed by an independent test team
-
Making sure that it is what the user really wants
B
Correct answer
Explanation
Verification checks that the product is built correctly according to specifications—"building the system right". It is not about building the right system (validation), nor is it defined by who performs it, making the other options inaccurate.
-
White box
-
Black box
-
Green box
-
Yellow box
A
Correct answer
Explanation
Cyclomatic Complexity measures the number of independent paths through code by counting decision points (predicates). It's calculated from the control flow graph, requiring knowledge of the code structure, making it a white-box testing technique. Black-box testing (B) doesn't examine code structure. Green and yellow box are not standard testing categories.
-
As the first approach to deriving test cases
-
After more formal techniques have been applied
-
By inexperienced testers
-
After the system has gone live
-
Only by end users
B
Correct answer
Explanation
Error guessing is applied after formal techniques such as boundary value analysis or equivalence partitioning have been used, because it relies on tester intuition to uncover hidden defects. It is not the first approach, nor is it limited to inexperienced testers, post‑production use, or end‑user activities, which makes those options incorrect.
-
As there are many different ways to test software, thought must be given to decide what will be the most effective way to test the project on hand.
-
Starting testing without prior planning leads to chaotic and inefficient test project
-
A strategy is needed to inform the project management how the test team will schedule the test-cycles
-
Software failure may cause loss of money, time, business reputation, and in extreme cases injury and death. It is therefore critical to have a proper test strategy in place.
D
Correct answer
Explanation
A test strategy provides a structured approach to testing that ensures comprehensive coverage and risk mitigation. Option D is most correct because it emphasizes the critical business impact and potential consequences of software failure - including financial loss, reputational damage, and safety risks. While options A, B, and C describe valid benefits of test planning, option D addresses the fundamental reason testing exists: to prevent serious negative outcomes. A proper test strategy aligns testing effort with business risk and provides stakeholder confidence in system reliability.