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

Multiple choice technology testing
  1. Models, either formal or informal, are used for the specification of the problem to be solved, the software or its components.

  2. Knowledge of testers, developers, users and other stakeholders about the software, its usage and its environment.

  3. Information about how the software is constructed is used to derive the test cases, for example, code and design

  4. Knowledge about likely defects and their distribution

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Structure-based testing (also called white-box testing) derives test cases from the internal structure of software - such as code, design, and architecture. It requires access to and understanding of how the software is built internally. Option A describes specification-based testing, B and D refer to experience-based testing techniques.

Multiple choice technology testing
  1. Code coverage

  2. Cost

  3. Resource availability

  4. Defect Density

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Testing exit criteria are based on measurable completion indicators like code coverage thresholds, defect density trends, and cost-benefit analysis. Resource availability is a constraint that affects HOW testing is performed, not a decision criterion for WHEN to stop. The stop decision depends on whether test objectives have been met, not on whether resources remain available.

Multiple choice technology testing
  1. Zero Defects

  2. Conformance to requirements

  3. Completing testing as per plan

  4. Finding more defects

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In quality management, quality is most standardly defined as conformance to requirements, ensuring the product meets specified user needs. While zero defects is an ideal goal, it is not the definition itself, and testing metrics do not define overall quality.

Multiple choice technology testing
  1. Analytical approach

  2. Model-based approach

  3. Methodical approach

  4. Consultative approach

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Risk-based testing is fundamentally an analytical approach because it involves systematic identification, assessment, and prioritization of risks using analytical techniques. It uses risk assessment matrices, impact analysis, and probability calculations to determine testing priority - making it analytical rather than model-based (which uses formal models), methodical (which follows predefined procedures), or consultative (which relies on expert judgment).

Multiple choice technology testing
  1. Code is complete

  2. Design is complete

  3. Requirements have been approved

  4. Code is delivered

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Test process activities (planning, monitoring, control) can begin once requirements have been approved because these activities depend on having defined test basis. Testing doesn't require code completion or delivery - test planning and design happen during earlier phases. Design completeness alone is insufficient; requirements approval provides the necessary foundation.

Multiple choice technology testing
  1. Risk Management

  2. Defect Management

  3. Configuration Management

  4. Incident Management

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Configuration Management is responsible for uniquely identifying and controlling versions of test items, documents, tests, and test harness. It provides version control, traceability, and reproducibility. Risk Management deals with risks, Defect Management tracks bugs, and Incident Management handles test incidents - none of these provide the unique identification function described.

Multiple choice technology testing
  1. Mcaffee Number

  2. McCabe Number

  3. Test complexity value

  4. Defect density

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Cyclomatic complexity was developed by Thomas McCabe and is commonly called McCabe's number or McCabe's complexity metric. It's a measure of code complexity based on control flow. McAffee is unrelated, 'Test complexity value' is not a standard term, and 'Defect density' measures bugs per unit size, not structural complexity.

Multiple choice technology testing
  1. Quality Assurance

  2. Quality Control

  3. Defect management

  4. Software testing

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Defect detection and correction is Quality Control - it involves inspecting the product to find and fix defects. Quality Assurance focuses on preventing defects through process improvement. Defect management is the tracking system, and Software testing is the broader activity. The detection-correction cycle is reactive QC, not preventive QA.

Multiple choice technology testing
  1. V model

  2. Agile model

  3. X model

  4. Waterfall model

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

V model, Agile model, and Waterfall model are well-known software development/testing models. The 'X model' is not a recognized testing or development model in standard software engineering literature. This appears to be a fabricated option to test fundamental knowledge of testing models.

Multiple choice technology testing
  1. Low

  2. Medium

  3. High

  4. Should not be prioritized

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Severity 1 indicates the most critical defects (system crash, data loss, complete feature failure). Such high-severity defects must receive high or urgent priority for resolution. Assigning 'Low' priority to a Severity 1 defect would be inappropriate because the impact is critical, even if frequency is low. Priority must align with severity for critical issues.

Multiple choice technology testing
  1. Scenario generator

  2. Defect Management tool

  3. Regression testing tool

  4. Test data generator

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Bugzilla is a widely-used web-based bug tracking and defect management system developed by Mozilla. It's used for reporting, tracking, and managing defects/issues. It's not for scenario generation, regression testing automation, or test data generation - its primary and well-known purpose is defect/issue management.

Multiple choice technology testing
  1. Properties

  2. Resources

  3. Web

  4. Web Settings

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Browser Navigation Timeout is configured in the Properties tab of the Test Settings window in QTP/UFT. This tab contains various timeout settings and configuration options for test execution. Resources, Web, and Web Settings tabs do not contain this particular configuration.

Multiple choice technology testing
  1. Semantic Errors

  2. Syntax Errors

  3. Common Errors

  4. Logic Errors

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The Information Pane in QTP/UFT displays Syntax Errors that occur during test creation and execution. Semantic Errors, Common Errors, and Logic Errors are not the standard error types shown in this pane. Syntax errors relate to code structure and grammar violations.

Multiple choice technology testing
  1. 1 Ctrl + M

  2. 2 Ctrl + T

  3. 3 Ctrl + J

  4. 4 None

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In QTP, block commenting can be done using Ctrl+M to comment out multiple selected lines of code. This shortcut adds comment markers to all selected lines simultaneously. Ctrl+T is typically used for other purposes (like merging), Ctrl+J is not a standard commenting shortcut, and 'None' is incorrect.