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
-
To find whether the hardware burns out
-
Same as build verification test
-
To find that software is stable
-
None of the above
-
A type of dynamic testing
-
Type of static testing
-
Neither dynamic nor static
-
Performed by the testing team
B
Correct answer
Explanation
A code walkthrough is a form of static code review where authors guide other members through the source code, examining it without executing it.
-
Same as static testing
-
Done by the developers
-
Both A and B
-
None of the above
-
Focused Testing, Testing coverage, control flow
-
Data integrity, Internal boundaries, algorithm specific testing
-
Both A and B
-
Either A or B
A
Correct answer
Explanation
Glass box testing (white box testing) provides three key benefits: focused testing on specific code paths or modules, measurable test coverage through code analysis, and visibility into control flow structures including decision points and branches. By seeing inside the code, testers can target areas that black box testing might miss, ensure all logic paths are exercised, and verify internal correctness rather than just input-output behavior.
-
Delaying tester’s access to areas of the code
-
Replacement with updated product
-
Training programmers to make or miss fewer bugs
-
Testing by Tech. Support
C
Correct answer
Explanation
Internal failure in testing context refers to addressing defects at their origin within the development process itself. Training programmers to write better code and introduce fewer bugs represents a preventive approach that targets the root cause of defects - the human element and development practices. This is fundamentally different from external failures that manifest during testing or in production, as it focuses on prevention at the source rather than detection downstream.
-
Same as black box testing B
-
Same as white box testing
-
Same as functional testing
-
None of the above.
B
Correct answer
Explanation
Structural testing examines the internal implementation details of software, including code structure, logic flow, algorithms, and data handling. It requires knowledge of and access to the internal code architecture, making it synonymous with white box testing. This contrasts with black box testing (also called functional testing) which only considers inputs and outputs without knowledge of internal workings.
-
A program that directs the execution of another program against a collection of test data sets. Usually the test driver also records and organizes the output generated as the tests are run.
-
A document that identifies test items and includes current status and location information
-
A document describing any event during the testing process that requires investigation
-
A software item that is an object of testing.
A
Correct answer
Explanation
A test driver is a control program that invokes and coordinates the execution of the software component being tested with various test data sets. It serves as the test harness that drives the testing process, captures output from each test case, and organizes results for evaluation. Test drivers are essential for automated testing and enable systematic execution of multiple test scenarios without manual intervention.
-
Another name for decision coverage
-
Another name for all-edges coverage
-
Another name for basic path coverage
-
All the above
-
Same as code walkthrough
-
Same as code inspection
-
Verification of code by the developers
-
None of the above.
C
Correct answer
Explanation
Desk checking is an informal software quality technique where the developer manually reviews, traces, or checks their own code logic before formal testing begins.
-
Decision coverage
-
Condition coverage
-
Statement coverage
-
Path Coverage
B
Correct answer
Explanation
The compound condition condition1 && (condition2 || function1()) contains multiple atomic conditions that can be independently true or false. Condition coverage requires testing each atomic condition for both true and false values, which is necessary here since we have condition1, condition2, and the return value of function1(). Decision coverage would only test the overall if/else decision (true/false), statement coverage would only ensure each statement is reached, and path coverage would test all possible paths through the code which is more comprehensive than needed.
-
a & b above
-
a, b & d above
-
c & d above
-
b, c & d above
A
Correct answer
Explanation
Standard software emulators typically cannot receive or dial phone calls from a real-world cellular network natively without specific hardware simulation, and they are generally used for development, testing, and debugging rather than as a medium to distribute and sell device applications. Therefore, statements a and b are false, making option A correct since the question asks for what is false.
-
A set of test cases for testing classes of objects
-
An input or output range of values such that only one value in the range becomes a test case
-
An input or output range of values such that each value in the range becomes a test case
-
An input or output range of values such that every tenth value in the range becomes a test case.
B
Correct answer
Explanation
Equivalence partitioning divides input or output data into ranges where the system handles all members similarly. Therefore, testing just one representative value (597078) suffices to cover the partition. Testing every value (597080) is redundant and defeats the purpose of the technique, while options 597078 and 597081 do not define equivalence classes.
-
Is impractical but possible
-
Is practically possible
-
Is impractical and impossible
-
Is always possible
A
Correct answer
Explanation
Exhaustive testing means testing all possible combinations of inputs and preconditions. While theoretically possible, it becomes impractical for real-world systems due to the combinatorial explosion of test cases. The answer correctly identifies this dichotomy - it's possible in principle but not feasible in practice.
-
Statement Testing and coverage
-
Decision Testing and coverage
-
Condition Coverage
-
Boundary value analysis
D
Correct answer
Explanation
White-box testing techniques require knowledge of internal code structure. Statement testing, decision testing, and condition coverage all examine internal code paths. Boundary value analysis is a black-box technique that only considers input/output boundaries without internal code knowledge.
-
Test Analysis and Design
-
Test Planning and control
-
Test Closure Activities
-
Evaluating exit criteria and reporting
C
Correct answer
Explanation
Test closure activities occur after testing is complete and include handing over testware, archiving testware, and evaluating the process. The hand-over of test-ware (test scripts, data, logs) to maintenance or other teams is explicitly part of test closure.