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. Rely on Path Based Testing

  2. Exercise the Logical Conditions in a Program module

  3. Select Test Paths based on the locations and uses of variables

  4. Focus on Testing the Validity of loop constructs

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

Condition testing is a white-box technique that specifically targets logical conditions (compound boolean expressions, if statements, loops) within program code. It ensures all possible combinations of conditions in decision points are tested to reveal potential logic flaws in conditional statements.

Multiple choice technology testing
  1. Rely on Path Based Testing

  2. Exercise the Logical Conditions in a Program module

  3. Select Test Paths based on the locations and uses of variables

  4. Focus on Testing the Validity of loop constructs

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

Data flow testing selects test paths based on how variables are defined, used, and killed throughout the program. It tracks the flow of data from assignment points to usage points, ensuring that all definition-use pairs are tested and uncovering errors in how data propagates through the code.

Multiple choice technology testing
  1. Incorrect or Missing functions

  2. Interface Errors

  3. Performance Errors

  4. All of the Above

  5. None of the Above

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

Black-box testing can detect incorrect or missing functions by comparing actual behavior against requirements. It reveals interface errors through invalid input/output testing and can identify performance errors by testing system response times and resource usage under various conditions.

Multiple choice technology testing
  1. Conventional Software Testing

  2. Operations and classes that are Critical or Suspect

  3. Use-Case Validation

  4. White-Box Testing of Operator Algorithms

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

Fault-based testing (also called mutation testing) deliberately introduces small faults to test effectiveness of test cases. Since it's computationally expensive, it's strategically reserved for critical operations where failures are costly or for suspect code sections that have had defects or complex logic requiring extra scrutiny.

Multiple choice technology testing
  1. Boundary Value Analysis

  2. Error Guessing

  3. Equivalence Partitioning

  4. Both B and C

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

Equivalence partitioning reduces test cases by grouping input data into classes that should be processed similarly. The technique divides test data into valid and invalid equivalence classes, then tests representative values from each class rather than every possible input, making testing more efficient while maintaining coverage.

Multiple choice technology testing
  1. Observability

  2. Simplicity

  3. Stability

  4. All of the Above

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

Testable software exhibits observability (you can see what's happening internally), simplicity (clear, understandable design), and stability (consistent behavior). These characteristics make it easier to design effective test cases, identify failures, and maintain test suites over time.

Multiple choice technology testing
  1. Statement Coverage

  2. Path Coverage

  3. Branch Coverage

  4. None of the Above

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

Statement coverage is a white-box testing metric that ensures every executable statement in the code is executed at least once during testing. It's the most basic form of code coverage, measuring what percentage of statements have been executed by the test suite.

Multiple choice technology programming languages
  1. WcfClient.exe

  2. WcfTestClient.exe

  3. WcfTestService.exe

  4. WcrTestRemoteService.exe

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

WcfTestClient.exe is the official WCF service testing tool provided with Visual Studio. It allows testing service operations without writing client code. The other options are fictitious tool names that do not exist in the .NET Framework.

Multiple choice technology programming languages
  1. Code Analysis, Testing, Build and Inspections

  2. Code Analysis, Testing, Build and Process flow

  3. Code Analysis, Testing, Build and Review

  4. Code Analysis, Testing, Build and work items

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

TFS supports four out-of-box check-in policies: Code Analysis (requires code analysis rules to pass), Testing (requires associated tests to pass), Build (requires build to succeed), and Work Items (requires work items to be linked/associated). The 'work items' option completes the set - options A, B, and C incorrectly list 'Inspections', 'Process flow', and 'Review' which are not standard policies.

Multiple choice technology programming languages
  1. Microsoft Test Manager 2010

  2. Microsoft Lab Manager 2010

  3. Microsoft Test Runner 2010

  4. Visual Studio 2010 Ultimate

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

Microsoft Test Manager 2010 (MTM) is the primary interface for testers. It provides comprehensive test management: creating and organizing test cases, managing test plans and suites, running tests and tracking results, and filing bugs with rich diagnostic information (intellitrace, video capture). Test Runner is a lightweight execution tool within MTM, Lab Manager manages test environments, and Visual Studio is the IDE.

Multiple choice technology programming languages
  1. Incremental Check-ins

  2. Test driven development

  3. Gated Check-ins

  4. Continuous integration

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

Gated check-ins is the TFS feature that allows testing check-ins before building completes. When a developer submits a gated check-in, the build system shelves the changes, builds the project, runs tests, and only commits the changes if everything passes. This prevents broken builds from entering the repository.

Multiple choice technology platforms and products
  1. Breakpoint

  2. Intellitrace

  3. Debugger

  4. VS Debugger

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

Intellitrace (formerly Historical Debugger) is the VS 2010 feature that enables historical debugging. It records events and method calls during execution, allowing developers to step backward and forward through code execution history to diagnose bugs that are difficult to reproduce.

Multiple choice technology testing
  1. TamperIE

  2. CookieMonitor

  3. SQL Profiler

  4. All the above

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

TamperIE modifies requests to test input validation. CookieMonitor examines cookie data for security issues. SQL Profiler helps analyze SQL injection vulnerabilities. All three are legitimate security testing tools.

Multiple choice technology testing
  1. Penetration testing

  2. Vulnerability Testing

  3. Risk Assessment

  4. All the above

  5. None of the above

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

Penetration testing actively exploits vulnerabilities. Vulnerability testing identifies security weaknesses. Risk assessment evaluates potential impact and likelihood. Security testing encompasses all these activities.