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
-
Black-Box Testing
-
Glass-Box Testing
-
Grey-Box Testing
-
White-Box Testing
A
Correct answer
Explanation
Black-box testing validates software functionality by examining inputs and outputs without knowledge of internal code structure. Test cases are designed based on requirements and specifications to ensure each program function operates correctly from a user perspective.
-
Behavioral Errors
-
Logic Errors
-
Performance Errors
-
Typographical Errors
-
Both B and D
E
Correct answer
Explanation
Black-box testing examines software behavior from the outside without viewing internal code, so it cannot detect logic errors in code flow or typographical mistakes within the implementation. White-box testing, which inspects the internal structure, can uncover these hidden defects that don't manifest as behavioral failures.
-
Behavioral Testing
-
Black-Box Testing
-
Grey-Box Testing
-
White-Box Testing
D
Correct answer
Explanation
White-box testing involves examining and testing the internal logic, code structure, and implementation details of a software module. Test cases are designed to cover specific code paths, branches, and conditions within the source code itself.
-
Rely on Path Based Testing
-
Exercise the Logical Conditions in a Program module
-
Select Test Paths based on the locations and uses of variables
-
Focus on Testing the Validity of loop constructs
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.
-
Rely on Path Based Testing
-
Exercise the Logical Conditions in a Program module
-
Select Test Paths based on the locations and uses of variables
-
Focus on Testing the Validity of loop constructs
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.
-
Incorrect or Missing functions
-
Interface Errors
-
Performance Errors
-
All of the Above
-
None of the Above
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.
-
Conventional Software Testing
-
Operations and classes that are Critical or Suspect
-
Use-Case Validation
-
White-Box Testing of Operator Algorithms
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.
-
Boundary Value Analysis
-
Error Guessing
-
Equivalence Partitioning
-
Both B and C
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.
-
Observability
-
Simplicity
-
Stability
-
All of the Above
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.
-
Statement Coverage
-
Path Coverage
-
Branch Coverage
-
None of the Above
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.
-
WcfClient.exe
-
WcfTestClient.exe
-
WcfTestService.exe
-
WcrTestRemoteService.exe
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.
-
Process Template customization
-
Work Item Tracking
-
Bug Tracking
-
Test case management system
-
Test Case management
-
Lab Management
-
Bug management
-
Process management
B
Correct answer
Explanation
Lab Management integrates physical and virtual test labs into the software lifecycle, automating provisioning and configuration. Other options like test case, bug, or process management deal with test logic, defect tracking, or workflow control rather than lab infrastructure.
-
Code Analysis, Testing, Build and Inspections
-
Code Analysis, Testing, Build and Process flow
-
Code Analysis, Testing, Build and Review
-
Code Analysis, Testing, Build and work items
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.
-
Microsoft Test Manager 2010
-
Microsoft Lab Manager 2010
-
Microsoft Test Runner 2010
-
Visual Studio 2010 Ultimate
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.