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
-
finding defects
-
Gaining confidence in and providing information about the level of quality
-
preventing defects
-
all of the above
D
Correct answer
Explanation
Testing serves multiple purposes: finding defects in the software, gaining confidence about quality by providing information, and preventing defects through early involvement (like test-driven development or reviews). Since all three purposes (A, B, C) are valid, 'all of the above' is the correct answer.
-
Coding
-
Testing
-
Debuging
-
Designing
C
Correct answer
Explanation
Debugging is the systematic process of identifying, analyzing, and removing defects or failures from software. While testing finds failures, debugging investigates the root causes and implements fixes. Coding is writing the program, testing checks if it works correctly, and designing plans the structure - none of these involve the systematic analysis and removal of failure causes.
-
Quality
-
Result
-
Failure
-
Coverage
D
Correct answer
Explanation
Coverage is defined as the degree, expressed as a percentage, to which a specified coverage item (such as branches, statements, or paths) has been exercised by a test suite. Other options like Quality, Result, and Failure do not represent percentage-based metrics of test execution thoroughness.
-
Test policy
-
Test Strategy
-
Test Approach
-
Test Basis
A
Correct answer
Explanation
A test policy is the highest-level document that describes an organization's overall principles, approach, and objectives for testing. It sets the direction and philosophy but doesn't detail specific methods. A test strategy is more specific, describing the approach for particular programs or test levels. Test approach is even more detailed and specific, while test basis refers to the documents used as reference for testing.
-
Test Control
-
Test implementation
-
Test ase execution
-
Test monitoring
D
Correct answer
Explanation
Test monitoring is the ongoing activity of periodically checking, tracking, and reporting the status of a test project. It provides visibility into progress without necessarily taking corrective action. Test control involves taking actions based on monitoring results. Test implementation prepares tests, and test case execution runs them - neither is primarily about periodic status checking.
-
Test policy
-
Test approach
-
Test Strategy
-
Test Control
C
Correct answer
Explanation
A test strategy provides a high-level description of the test levels to be performed (unit, integration, system, acceptance) and the testing activities within those levels for an organization or program. It bridges the gap between the high-level test policy and detailed test plans. A test policy is broader and more principle-based, test approach is more specific, and test control is an ongoing management activity.
-
N-Switch Coverage
-
N-Switch Testing
-
N+1 testing
-
Mutation Testing
B
Correct answer
Explanation
N-Switch Testing is a state transition testing technique where test cases are designed to execute all valid sequences of N-transitions. N-Switch Coverage is the metric used to measure this testing, but the design method itself is N-Switch Testing.
-
Standard
-
Text
-
Bitmap
-
All of the above
D
Correct answer
Explanation
QTP can validate multiple checkpoint types: standard checkpoints verify object properties, text checkpoints check text content, and bitmap checkpoints compare visual appearance. All listed types are valid QTP checkpoint categories.
-
Test Plan
-
Test Lab
-
Test Harness
-
None of the Above
A
Correct answer
Explanation
In HP Quality Center (now ALM), the Test Plan module is where test plans and test cases are created, organized, and documented. Test Lab is for execution/test sets, not documentation.
-
Unit testing
-
User Acceptance Testing
-
Integration testing
-
All of the above
B
Correct answer
Explanation
In the standard testing sequence (Unit → Integration → System → Acceptance), User Acceptance Testing (UAT) is the final phase after System testing. Unit and Integration testing come before System testing.
A
Correct answer
Explanation
All three statements about Agile Testing are true: (a) Agile delivers small working code regularly, (b) Continuous integration/testing reduces defects, (c) Agile accepts late binding requirements (changes allowed). These are core Agile principles.
B
Correct answer
Explanation
Agile technical practices DO use TDD (a is correct), DO use Continuous Integration (b is wrong saying 'Non-Continuous'), and DO have high coding standards (c is wrong saying 'Low'). Since statements contradict core Agile technical practices, the answer is False.
B
Correct answer
Explanation
Software testing typically accounts for 40-50% of software development costs according to industry studies. This reflects the significant effort required for quality assurance activities throughout the development lifecycle.
-
Failure
-
Success
-
Complete
-
Partial
A
Correct answer
Explanation
When a program does not work correctly, testing is considered a failure because it has revealed a defect. The goal of testing is to find failures so they can be fixed before deployment.
-
Alpha and Beta Testing
-
White Box Testing
-
Black Box Testing
-
Trial and Error Testing
A
Correct answer
Explanation
Alpha and Beta testing are user acceptance testing methods where actual end-users test the software before general release. Alpha testing is done at developer site, Beta at user's site.