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
-
Out of the box implementations usually doesn't meet performance requirements
-
Project manager was given an agressive schedule as it is an Out of the box implementation
-
Out of the box implementation may have undocumented performance problems
-
Less experianced deveopers were involved as it is an out of the box implemenation
C
Correct answer
Explanation
Out-of-the-box (OOTB) software is not automatically performance-tested for your specific workload and environment. Vendor performance claims are often based on idealized conditions that may not match your production reality. Even well-regarded OOTB solutions can have undocumented bottlenecks, memory leaks, or scaling issues that only surface under your specific usage patterns. Performance testing validates that the OOTB solution meets your actual requirements rather than assuming it will.
-
No need to do a performance test as test and production servers are not similar
-
Recommend the customer to upgrade the test server equivalent to production server proir to the performance test
-
Carry out the performance test with 50% anticipated production load
-
Carry out the performance test with 100% anticipated production load
B
Correct answer
Explanation
Performance test results from a 50% resource environment cannot be reliably extrapolated to production because bottlenecks may manifest differently at scale. Testing with reduced load (option C) assumes linear scaling which is often false, while testing with full load on undersized hardware (option D) would likely crash. For meaningful performance validation, the test environment should closely mirror production capacity, or you must establish a proven scaling model first.
-
Concurrent users defination unclear
-
Test data not suffeciently populated
-
Test & prod environments differ significantly
-
Network bandwidth not simulated
-
All of the above
E
Correct answer
Explanation
Performance testing failures commonly stem from misalignment between test conditions and production reality across multiple dimensions. Unclear concurrent user definitions (A) lead to underestimating or overestimating actual load. Insufficient test data (B) misses query optimization issues that only appear with realistic data volumes. Environment differences (C) hide infrastructure bottlenecks. And network bandwidth (D) is frequently overlooked but critical for real-world performance. All four are valid failure modes.
-
Phase containment
-
Defect detection efficiency
-
Test case execution cycle time
-
Test case defect density
D
Correct answer
Explanation
Phase containment, defect detection efficiency, and test case execution cycle time all measure aspects of test process capability. Test case defect density (D) is a product quality metric, not a process capability metric - it measures test thoroughness, not execution process performance.
-
monitor just the Database server
-
monitor just the Application server
-
monitor all system components present in your AUT
-
use the performance summary instead of monitoring individual components
C
Correct answer
Explanation
Comprehensive monitoring across all components in the Application Under Test is critical because bottlenecks can occur anywhere in the system. Focusing only on the database or application server risks missing issues in other layers like web servers, cache servers, or authentication services. The performance summary provides aggregated data but cannot replace component-level monitoring needed for root cause analysis.
-
BeanShell Assertions
-
Response Assertions
-
XPath Assertions
-
All of the above
D
Correct answer
Explanation
JMeter offers several assertion types to validate responses. BeanShell Assertions, Response Assertions, and XPath Assertions are all standard assertions in JMeter. Thus, all listed options are correct assertions, making 'All of the above' the correct choice.
-
Samplers
-
Assertions
-
Thread Group
-
Logical Controllers
A,D
Correct answer
Explanation
In JMeter, the two controller types that drive test processing are Samplers (which send requests to servers) and Logic Controllers (which control the execution flow of samplers). Assertions validate responses but don't drive processing. Thread Group is a container element, not classified as a controller in this context.
-
statement testing
-
equivalence partitioning
-
error- guessing
-
usability testing
B
Correct answer
Explanation
Equivalence partitioning is a black-box testing technique that divides input data into groups expected to be processed similarly. It examines inputs and outputs without knowledge of internal code structure, which is the definition of black-box testing.
-
It reduces time to market.
-
It finds more defect than other method
-
It is cheap
-
It is helpful to testers.
A
Correct answer
Explanation
Agile testing focuses on rapid, iterative cycles and early feedback, which inherently reduces the time it takes to release software to the market. Other options are incorrect because Agile is not inherently cheaper or guaranteed to find more defects than other methods.
B
Correct answer
Explanation
Unit testing tests individual components in isolation first. Integration testing then tests how those components work together. Integration testing cannot happen before unit testing because you need working units to integrate.
-
code inspection
-
coverage analysis
-
usability assessment
-
installation test
A
Correct answer
Explanation
Static testing evaluates software artifacts without executing the code. Code inspection is a manual review process where developers examine code for defects without running it - this is static testing. Coverage analysis and installation testing require code execution.
-
volume testing
-
Stress testing
-
Load testing
-
Performance testing
C
Correct answer
Explanation
Load testing is specifically defined as the process of putting demand on a system and measuring its response. It involves testing the system under a specific expected load to determine behavior. Stress testing tests beyond normal load (often to breaking point), volume testing focuses on data volume, and performance testing is a broader category measuring speed, responsiveness, and stability under various conditions. Load testing is the most precise match to 'putting demand and measuring response'.
-
Stress testing
-
Load testing
-
Volume esting
-
Performance testing
D
Correct answer
Explanation
Performance testing is the broad category that specifically measures how fast aspects of a system perform under a particular workload. It focuses on response times, throughput, and latency metrics. Load testing is a subset of performance testing that tests under specific loads. Stress testing tests beyond normal capacity. The misspelling 'Volume esting' is likely a typo for Volume Testing. Performance testing best matches the definition of testing speed under workload.
-
Recovery testing
-
Load testing
-
Reliability testing
-
stress testing
D
Correct answer
Explanation
Stress testing is specifically used to determine the stability of a system by testing it beyond normal operating conditions, often pushing it to breaking point. It evaluates system stability and robustness under extreme conditions. Recovery testing focuses on recovery from failures, reliability testing measures consistency over time, and load testing tests under expected loads. Stress testing's primary goal is assessing stability under adverse conditions.