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 storage
  1. a) time runs out.

  2. b) the required level of confidence has been achieved.

  3. c) no more faults are found.

  4. d) the users won’t find any serious faults.

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

In software testing, 'enough testing' is determined by achieving the required level of confidence in the software quality, not by arbitrary constraints. Option A (time runs out) is a practical but not ideal criterion. Option C (no more faults found) is unrealistic as complex systems can always have undiscovered faults. Option D (users won't find faults) is speculative. Option B correctly states that testing is complete when the predefined confidence level - based on risk, requirements, and quality standards - is achieved.

Multiple choice technology storage
  1. Complier

  2. HP Quality Center

  3. HP QTP

  4. HP Load Runner

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

Test management tools are used to manage the testing process, including test planning, test case management, execution tracking, and reporting. HP Quality Center (now known as ALM) is a comprehensive test management tool that provides these capabilities. Option A (Complier) appears to be a typo for 'Compiler', which is a development tool, not a testing tool. Option C (HP QTP) is a functional automation tool, and Option D (HP LoadRunner) is a performance testing tool - both are testing execution tools, not test management tools.

Multiple choice technology storage
  1. Number of undetected defects.

  2. Total number of defects in the product.

  3. Number of test cases not yet executed.

  4. Effort required to fix all defects.

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

To answer this question, the user needs to understand what measures can be used to assess test progress.

Option A: Number of undetected defects. This is not a valid measure of test progress because it does not indicate how many tests have been executed or how many defects have been found and fixed. This metric only counts the number of defects that have not been found yet.

Option B: Total number of defects in the product. This is not a valid measure of test progress because it does not indicate how many defects have been found and fixed. This metric only counts the total number of defects in the product, which can increase or decrease over time.

Option C: Number of test cases not yet executed. This is a valid measure of test progress because it indicates how many test cases are left to execute. As test cases are executed, this number will decrease, providing a clear indication of how far the testing effort has progressed.

Option D: Effort required to fix all defects. This is not a valid measure of test progress because it focuses on the effort required to fix defects rather than the progress made in finding and fixing defects. This metric does not provide any information about the state of testing or how close the team is to completing the testing effort.

Therefore, the correct answer is:

The Answer is: C. Number of test cases not yet executed.

Multiple choice technology storage
  1. a) re-testing is running a test again; regression testing looks for unexpected side effects

  2. b) re-testing looks for unexpected side effects; regression testing is repeating those tests

  3. c) re-testing is done after faults are fixed; regression testing is done earlier

  4. d) re-testing uses different environments, regression testing uses the same environment

  5. e) re-testing is done by developers, regression testing is done by independent testers

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

Re-testing (confirmation testing) is performed specifically to verify that a previously detected and reported defect has been successfully fixed by executing the same test cases. Regression testing is conducted on unmodified parts of the system to ensure that the changes have not introduced unexpected side effects or new defects.

Multiple choice technology storage
  1. a) No, because they apply to development documentation

  2. b) No, because they are normally applied before testing

  3. c) No, because they do not apply to the test documentation

  4. d) Yes, because both help detect faults and improve quality

  5. e) Yes, because testing includes all non-constructive activities

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

Reviews and inspections are static testing techniques. Both techniques analyze deliverables (like requirements, design, or code) without executing the software, with the goal of identifying defects early in the software development lifecycle and improving product quality, thus making them an integral part of the overall testing process.

Multiple choice technology storage
  1. ii and iii.

  2. ii and iv.

  3. I and iv.

  4. I and iii.

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

Black box testing views software as a functional system without knowing internal implementation. It relies on system models (ii) and test basis documentation like requirements or specifications (iii). White box testing uses knowledge of internal construction (i) and component structure analysis (iv). The question specifically asks for black box basis.

Multiple choice technology storage
  1. a) v & w are true, x – z are false

  2. b) w, x & y are true, v & z are false

  3. c) w & y are true, v, x & z are false

  4. d) w is true, v, x y and z are false

  5. e) all of the above are true

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

Regression testing is triggered by changes to the software (w) or changes to the environment (y) to verify that existing functionality is not broken. Regular scheduled intervals (v), continuous execution (x), or arbitrary manager direction (z) are scheduling/management choices rather than the technical definitions or triggers of regression testing itself.

Multiple choice technology storage
  1. a) i, iii & iv are true. Ii & v are false

  2. b) iii is true, I, ii, iv & v are false

  3. c) iii & iv are true. i, ii & v are false

  4. d) i, iii, iv & v are true, ii us false

  5. e) i & iii are true, ii, iv & v are false

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

To solve this question, the user needs to understand the concept of early test design and its advantages and disadvantages.

Now, let's go through each statement and determine if it is true or false:

i. Early test design can prevent fault multiplication. This statement is true because detecting and fixing faults early in the software development process can prevent them from propagating to later stages, where they can be more difficult and expensive to fix.

ii. Faults found during early test design are more expensive to fix. This statement is false because detecting and fixing faults early in the software development process can save time and money by preventing faults from propagating to later stages where they can be more difficult and expensive to fix.

iii. Early test design can find faults. This statement is true because early test design involves reviewing requirements and design documents to identify potential issues and defects before any code is written.

iv. Early test design can cause changes to the requirements. This statement is true because early test design can identify issues with the requirements or design that need to be addressed, potentially leading to changes in the requirements.

v. Early test design takes more effort. This statement is false because early test design can save time and effort by preventing faults from propagating to later stages, where they can be more difficult and expensive to fix.

Therefore, the correct answer is:

The Answer is: A

Multiple choice technology storage
  1. a) developers would typically use i, iv and vi; test team ii, iii and v

  2. b) developers would typically use i and iv; test team ii, iii, v and vi

  3. c) developers would typically use i, ii, iii and iv; test team v and vi

  4. d) developers would typically use ii, iv and vi; test team I, ii and v

  5. e) developers would typically use i, iii, iv and v; test team ii and vi

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

Developers typically use static analysis (i) and dynamic analysis (iv) tools during coding and debugging. Independent test teams manage performance testing (ii), test management (iii), test running (v), and test data preparation (vi) as part of formal QA processes. Option B correctly separates these responsibilities.

Multiple choice technology storage
  1. a dynamic analysis tool

  2. a test execution tool

  3. a debugging tool

  4. a test management tool

  5. a configuration management tool

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

Test management tools organize the testing process by maintaining traceability between requirements and tests, logging defects, scheduling test execution, and generating status reports. Dynamic analysis tools run code (A), test execution tools run tests (B), debugging tools find bugs (C), and configuration management tracks versions (E). Option D describes the organizational function.

Multiple choice technology storage
  1. a) only important in system testing

  2. b) only used in component testing

  3. c) never specified in advance

  4. d) most useful when specified in advance

  5. e) derived from the code

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

Expected results should be specified in advance (D) for all testing levels to enable pass/fail determination and prevent bias. They are not limited to system testing (A) or component testing (B), should not be ad-hoc (C), and come from requirements not code (E). Option D is the universally correct practice.

Multiple choice technology testing
  1. an error

  2. a fault

  3. a failure

  4. a defect

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

In software testing terminology, a failure is when the system deviates from expected behavior during execution - it's the visible symptom to the end-user. A fault is the defect in code that causes the failure. An error is a human mistake that leads to a fault. A defect is often used interchangeably with fault.

Multiple choice technology testing
  1. v & w are true, x – z are false

  2. w, x & y are true, v & z are false

  3. w & y are true, v, x & z are false

  4. w is true, v, x y and z are false

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

Regression testing should be performed after software changes (W) and when the environment changes (Y), as these are the situations where existing functionality might break. Testing every week (V), as often as possible (X), or when the project manager says (Z) are not standard practices - regression testing is event-driven, not schedule-driven.

Multiple choice technology testing
  1. test items

  2. test deliverables

  3. test environment

  4. test specification

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

The IEEE 829 standard outlines the structure of a Test Plan, which includes sections for test items, deliverables, and environmental needs. While a "test specification" is a separate IEEE 829 document type altogether, it is not a structural component or section within the Test Plan document template itself.