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
-
The number of decision statements plus one
-
A set of Boolean conditions such that complete test sets for the conditions uncover the same errors
-
The process of analyzing and correcting syntactic logic and other errors identified during testing
-
None of the above
A
Correct answer
Explanation
Cyclomatic complexity V(G) is calculated as the number of decision statements (predicate nodes) plus one, or more formally E - N + 2P for a connected graph. It measures program control flow complexity and the minimum number of test paths needed.
-
Test log
-
Test Incident report
-
Test Cycle
-
Test Item
B
Correct answer
Explanation
A Test Incident Report documents any unusual event during testing that requires investigation - such as defects,环境 issues, or unexpected behaviors. A test log is a chronological record, test cycle is a testing iteration, and test item refers to the software component being tested.
-
Requirements
-
Defect density
-
Failure Modes
-
Availability
-
Specifications
D
Correct answer
Explanation
Nonfunctional criteria (also called quality attributes) describe how a system behaves rather than what it does. Availability is a classic nonfunctional requirement specifying the percentage of time a system must be operational. Requirements (A), specifications (E), and failure modes (C) are functional or process-related, while defect density (B) is a quality metric rather than a requirement type.
-
Load Test
-
Stress Test
-
Performance Test
-
Endurance Test
-
Volume Test
D
Correct answer
Explanation
Option D (Endurance Test) is correct because endurance testing specifically measures sustained performance over extended periods under continuous expected load - it tests for memory leaks, resource exhaustion, and performance degradation that accumulate over time. Load tests (A) measure capacity, stress tests (B) find breaking points, performance tests (C) measure responsiveness, and volume tests (E) test data volume handling - none focus specifically on sustainability.
-
Multiple web servers with a load balancer
-
Data caching on client side
-
Parameterize input parameters
-
Placing a rendezvous point
B
Correct answer
Explanation
Option B is correct because client-side data caching can dramatically improve performance for end users but will negatively skew test results by reducing server load during testing - the test won't accurately reflect actual server performance under load. Options A (load balancers), C (parameterization), and D (rendezvous points) are performance testing best practices that improve test accuracy, not skew results. Caching should be disabled or consistent during testing to get valid results.
-
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 testing requires a test environment that closely mirrors production to yield meaningful results. With only 50% resources, the test server cannot accurately simulate production load patterns. Testing at reduced capacity or with reduced load will not reveal true performance characteristics.
-
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
All listed factors are common reasons why performance issues escape detection during testing. Unclear concurrent user definitions lead to inadequate load simulation. Insufficient test data fails to expose database performance issues. Environment differences mask production realities. Unsimulated network bandwidth hides latency problems.
-
Load Test
-
Stress Test
-
Performance Test
-
Endurance Test
-
Volume Test
A
Correct answer
Explanation
Load testing measures system performance under anticipated production load to verify it meets performance requirements. Stress testing uses beyond-normal loads. Performance testing is broader. Endurance testing tests stability over long duration. Volume testing tests with large data volumes.
-
Load Test
-
Stress Test
-
Performance Test
-
Endurance Test
-
Volume Test
C
Correct answer
Explanation
Performance testing measures response times and other metrics, often at lower loads to establish baselines or identify individual component performance. Load testing specifically targets expected production loads. The wording 'usually low load' distinguishes this as general performance measurement rather than load simulation.
-
Load Test
-
Stress Test
-
Performance Test
-
Endurance Test
-
Volume Test
B
Correct answer
Explanation
Stress testing measures system behavior under unusually high or peak loads, often beyond normal capacity, to find breaking points. Load testing uses expected loads. Performance testing is broader. Endurance tests over time. Volume tests with large data. The phrase 'unusually high or peak loads' indicates stress testing.
-
the waiting process during test execution for multiple virtual users to arrive at a certain point
-
playback the script in multi-user mode
-
the events that occur during each testing session
-
recording a script
C
Correct answer
Explanation
A test scenario describes the sequence of events and conditions that occur during a testing session, including user actions, system responses, and environmental factors. Option A refers to a rendezvous point in load testing, B describes test script execution, and D refers to test creation. C correctly captures that a test scenario encompasses all events that happen during testing.
-
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
Even out-of-the-box implementations can have performance problems that only surface under load or specific conditions. These issues are often undocumented and may not be discovered until production use. Performance testing validates whether the OTB solution meets requirements, especially for critical transactions or peak loads. A is incorrect because OTB software can meet requirements; B and D are irrelevant to testing need.
-
Load Test
-
Stress Test
-
Performance Test
-
Endurance Test
-
Volume Test
D
Correct answer
Explanation
Endurance testing specifically checks if the application can sustain expected load over an extended period, revealing memory leaks, resource exhaustion, or degradation that occurs over time. Load testing measures performance at expected load; stress testing finds breaking points; performance testing is the general category; volume testing uses large data volumes. D is the specific answer for sustained load testing.
-
Validation can be done in report studio
-
No such option available
-
We shall compile report using script and macros
-
Check in Query Studio itself
A
Correct answer
Explanation
Report Studio includes built-in validation features that allow report authors to check for errors such as missing data items, incorrect calculations, or layout issues before running the report. This validation capability is accessible directly within the Report Studio interface. The other options are incorrect - validation does not require external scripts or macros, and Query Studio does not provide comprehensive validation for complex reports.
B
Correct answer
Explanation
Software testing typically accounts for 40-50% of total software development costs according to industry studies and research. This includes activities like test planning, test design, test execution, and maintenance of test artifacts. The 10-20% range underestimates testing effort, while 70-80% and 5-10% are outside realistic industry ranges.