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

Multiple choice technology architecture
  1. Out of the box implementations usually doesn't meet performance requirements

  2. Project manager was given an agressive schedule as it is an Out of the box implementation

  3. Out of the box implementation may have undocumented performance problems

  4. Less experianced deveopers were involved as it is an out of the box implemenation

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology architecture
  1. No need to do a performance test as test and production servers are not similar

  2. Recommend the customer to upgrade the test server equivalent to production server proir to the performance test

  3. Carry out the performance test with 50% anticipated production load

  4. Carry out the performance test with 100% anticipated production load

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology architecture
  1. Concurrent users defination unclear

  2. Test data not suffeciently populated

  3. Test & prod environments differ significantly

  4. Network bandwidth not simulated

  5. All of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology testing
  1. Phase containment

  2. Defect detection efficiency

  3. Test case execution cycle time

  4. Test case defect density

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology performance
  1. monitor just the Database server

  2. monitor just the Application server

  3. monitor all system components present in your AUT

  4. use the performance summary instead of monitoring individual components

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology performance
  1. BeanShell Assertions

  2. Response Assertions

  3. XPath Assertions

  4. All of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology performance
  1. Samplers

  2. Assertions

  3. Thread Group

  4. Logical Controllers

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology testing
  1. statement testing

  2. equivalence partitioning

  3. error- guessing

  4. usability testing

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology testing
  1. It reduces time to market.

  2. It finds more defect than other method

  3. It is cheap

  4. It is helpful to testers.

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology testing
  1. code inspection

  2. coverage analysis

  3. usability assessment

  4. installation test

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology testing
  1. volume testing

  2. Stress testing

  3. Load testing

  4. Performance testing

Reveal answer Fill a bubble to check yourself
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'.

Multiple choice technology testing
  1. Stress testing

  2. Load testing

  3. Volume esting

  4. Performance testing

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology testing
  1. Recovery testing

  2. Load testing

  3. Reliability testing

  4. stress testing

Reveal answer Fill a bubble to check yourself
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.