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 testing
  1. The number of decision statements plus one

  2. A set of Boolean conditions such that complete test sets for the conditions uncover the same errors

  3. The process of analyzing and correcting syntactic logic and other errors identified during testing

  4. None of the above

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

Multiple choice technology testing
  1. Test log

  2. Test Incident report

  3. Test Cycle

  4. Test Item

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

Multiple choice technology architecture
  1. Requirements

  2. Defect density

  3. Failure Modes

  4. Availability

  5. Specifications

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

Multiple choice technology architecture
  1. Load Test

  2. Stress Test

  3. Performance Test

  4. Endurance Test

  5. Volume Test

Reveal answer Fill a bubble to check yourself
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 choice technology architecture
  1. Multiple web servers with a load balancer

  2. Data caching on client side

  3. Parameterize input parameters

  4. Placing a rendezvous point

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

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 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.

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

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.

Multiple choice technology architecture
  1. Load Test

  2. Stress Test

  3. Performance Test

  4. Endurance Test

  5. Volume Test

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

Multiple choice technology architecture
  1. Load Test

  2. Stress Test

  3. Performance Test

  4. Endurance Test

  5. Volume Test

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

Multiple choice technology architecture
  1. Load Test

  2. Stress Test

  3. Performance Test

  4. Endurance Test

  5. Volume Test

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

Multiple choice technology architecture
  1. the waiting process during test execution for multiple virtual users to arrive at a certain point

  2. playback the script in multi-user mode

  3. the events that occur during each testing session

  4. recording a script

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

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

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.

Multiple choice technology architecture
  1. Load Test

  2. Stress Test

  3. Performance Test

  4. Endurance Test

  5. Volume Test

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

Multiple choice technology
  1. Validation can be done in report studio

  2. No such option available

  3. We shall compile report using script and macros

  4. Check in Query Studio itself

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

Multiple choice technology testing
  1. 10-20

  2. 40-50

  3. 70-80

  4. 5-10

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