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. To find whether the hardware burns out

  2. Same as build verification test

  3. To find that software is stable

  4. None of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Multiple choice technology testing
  1. A type of dynamic testing

  2. Type of static testing

  3. Neither dynamic nor static

  4. Performed by the testing team

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

Multiple choice technology testing
  1. Focused Testing, Testing coverage, control flow

  2. Data integrity, Internal boundaries, algorithm specific testing

  3. Both A and B

  4. Either A or B

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

Multiple choice technology testing
  1. Delaying tester’s access to areas of the code

  2. Replacement with updated product

  3. Training programmers to make or miss fewer bugs

  4. Testing by Tech. Support

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

Multiple choice technology testing
  1. Same as black box testing B

  2. Same as white box testing

  3. Same as functional testing

  4. None of the above.

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

Multiple choice technology testing
  1. 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.

  2. A document that identifies test items and includes current status and location information

  3. A document describing any event during the testing process that requires investigation

  4. A software item that is an object of testing.

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

Multiple choice technology testing
  1. Same as code walkthrough

  2. Same as code inspection

  3. Verification of code by the developers

  4. None of the above.

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

Multiple choice technology testing
  1. Decision coverage

  2. Condition coverage

  3. Statement coverage

  4. Path Coverage

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

Multiple choice technology web technology
  1. a & b above

  2. a, b & d above

  3. c & d above

  4. b, c & d above

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

Multiple choice technology testing
  1. A set of test cases for testing classes of objects

  2. An input or output range of values such that only one value in the range becomes a test case

  3. An input or output range of values such that each value in the range becomes a test case

  4. An input or output range of values such that every tenth value in the range becomes a test case.

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

Multiple choice technology testing
  1. Is impractical but possible

  2. Is practically possible

  3. Is impractical and impossible

  4. Is always possible

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

Multiple choice technology testing
  1. Statement Testing and coverage

  2. Decision Testing and coverage

  3. Condition Coverage

  4. Boundary value analysis

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

Multiple choice technology testing
  1. Test Analysis and Design

  2. Test Planning and control

  3. Test Closure Activities

  4. Evaluating exit criteria and reporting

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