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
-
Specification based technique
-
Black box technique
-
White box technique
-
D. Data driven testing technique
C
Correct answer
Explanation
White box testing examines the internal structure and implementation of the system, making it appropriate for testing undocumented legacy code. When specifications are unavailable, analyzing the code structure helps identify test scenarios and verify that the existing functionality works correctly, even without formal requirements documentation.
-
Security testing
-
Non functional testing
-
Exploratory testing
-
Interoperability testing
C
Correct answer
Explanation
Exploratory testing is an informal approach where testers design and execute tests simultaneously, using insights from previous test results to guide subsequent testing. This adaptive, learning-based approach allows testers to investigate the system dynamically and follow promising leads based on what they discover.
-
Model based
-
Analytical
-
Methodical
-
Heuristic
A
Correct answer
Explanation
Stochastic testing uses random inputs and statistical models to test systems, which makes it a model-based testing approach. It relies on probabilistic models and statistical distributions to generate test cases, rather than following deterministic algorithms or heuristics.
-
Underestimating the effort needed to maintain the test assets
-
Losing access to important testing information when needed
-
Relying too much on qualitative and quantitative assessments
-
Lowering the morale of the test team because of repetition
A
Correct answer
Explanation
Test support tools require ongoing maintenance to remain effective. Organizations often underestimate the effort needed to update test scripts, maintain tool configurations, and manage test assets as the system under test evolves. This is a recognized risk in test automation.
-
Operational
-
Customer
-
Contractual
-
Regulatory
A
Correct answer
Explanation
Operational acceptance testing is typically performed by system administrators to verify that the system meets operational requirements such as backup/recovery procedures, performance under load, and manageability. Customer acceptance is done by users, contractual by legal/business stakeholders, and regulatory by compliance auditors.
-
System testing
-
Operational testing
-
Structural testing
-
Integration testing
C
Correct answer
Explanation
Structural testing (also known as white-box testing) can be performed at all test levels - unit, integration, system, and acceptance. It examines the internal structure and implementation of the software. System and Operational testing are primarily at the system level, while Integration testing focuses on interfaces between components.
-
Project Managers
-
Operators of the product
-
Developers
-
Technical Experts
B
Correct answer
Explanation
Operational acceptance testing is performed by the end users or operators who will actually use the system in production. This is different from user acceptance testing (which may include business users) - operational testing focuses on operational readiness, maintainability, and recoverability from the operator's perspective.
-
Test Implementation and execution
-
Test Analysis and Design
-
Evaluating the Exit Criteria and reporting
-
Test Closure Activities
-
I, ii, iii are true and iv is false
-
I , iii, iv are true and ii is false
-
ii, iii are true and i and iv are false
-
I , ii are false and iii, iv are true
B
Correct answer
Explanation
A Test Plan document includes test items (features to test), test deliverables (reports, logs, etc.), and responsibilities (roles and tasks). Test Scripts are not part of the Test Plan outline - they are created during test design/specification, which comes later.
A
Correct answer
Explanation
For a valid range of 18-25, the equivalence classes are: valid (18-25), invalid below (less than 18), and invalid above (greater than 25). Option A (17) is invalid because it's below the minimum valid value of 18. Options B (19), C (24), and D (21) are all valid values within the accepted range.
-
static testing includes desk checking
-
Static testing requires the running of tests through the code
-
static testing includes techniques such as reviews and inspections
-
static testing can give measurements such as cyclomatic complexity
B
Correct answer
Explanation
Static testing involves testing without executing the code - it includes reviews, inspections, walkthroughs, and static analysis tools that examine code structure. Statement B is false because static testing by definition does NOT require running code through execution - that's dynamic testing. Statements A, C, and D correctly describe aspects of static testing.
-
Component Integration Testing
-
Component System Testing
-
Component Sub System Testing
-
Maintenance Testing
A
Correct answer
Explanation
Link Testing, which tests the interactions between integrated components, is also known as Component Integration Testing. It focuses on verifying that components can correctly communicate and exchange data. System testing and subsystem testing are broader scopes, and maintenance testing occurs after deployment.
-
Development team
-
Testing team
-
Both
-
None of the Above
A
Correct answer
Explanation
Coverage measurement tools are primarily used by the development team during unit and integration testing to measure how much of the code is being exercised by tests. The testing team typically focuses on test design and execution rather than coverage measurement itself.
-
Consultative Approach
-
Preventive Approach
-
Dynamic Approach
-
Model Based Approach
C
Correct answer
Explanation
Exploratory technique comes under the Dynamic Approach because it involves simultaneous learning, test design, and execution - all dynamic activities. Model Based Approach uses predefined models, Consultative Approach relies on expert input, and Preventive Approach focuses on prevention.
-
pyIterationNumber
-
pyForEach
-
pyForEachCount
-
pyCount
C
Correct answer
Explanation
During loop execution over a list, Pega automatically stores the current iteration index in the standard parameter pyForEachCount. The other parameters like pyIterationNumber, pyForEach, and pyCount do not exist as standard loop counters in Pega's engine API, making them incorrect.