Software Testing Techniques and Methodologies

Covers fundamental software testing concepts including black-box and white-box testing, test metrics, coverage analysis, and testing strategies

13 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

When software reliability measures are used to determine when to stop testing, the best types of test cases to use are those that

  1. Exercise system functions in proportion to the frequency they will be used in the released product
  2. Push the system beyond its designed operation limits and are likely to make the system fail
  3. Exercise unusual and obscure scenarios that may not have been considered in design
  4. Exercise the most complicated and the most error-prone portions of the system
Question 2 Multiple Choice (Single Answer)

What is the difference between a project risk and a product risk?

  1. A. Project risks are potential failure areas in the software or system; product risks are risks that surround the project’s capability to deliver its objectives.
  2. B. Project risks are the risks that surround the project’s capability to deliver its objectives; product risks are potential failure areas in the software or system.
  3. C. Project risks are typically related to supplier issues, organizational factors and technical issues; product risks are typically related to skill and staff shortages.
  4. D. Project risks are risks that delivered software will not work; product risks are typically related to supplier issues, organizational factors and technical issues.
Question 3 Multiple Choice (Single Answer)

Consider the following statements: i.100% statement coverage guarantees 100% branch coverage. ii.100% branch coverage guarantees 100% statement coverage. iii.100% branch coverage guarantees 100% decision coverage. iv.100% decision coverage guarantees 100% branch coverage. v.100% statement coverage guarantees 100% decision coverage.

  1. A. ii is True; i, iii, iv & v are False
  2. B. i & v are True; ii, iii & iv are False
  3. C. ii & iii are True; i, iv & v are False
  4. D. ii, iii & iv are True; i & v are False
Question 4 Multiple Choice (Single Answer)

Which of the following are disadvantages of capturing tests by recording the actions of a manual tester? i The script may be unstable when unexpected events occur. ii Data for a number of similar tests is automatically stored separately from the script. iii Expected results must be added to the captured script. iv The captured script documents the exact inputs entered by the tester. v When replaying a captured test, the tester may need to debug the script if it doesn’t play correctly.

  1. i, iii, iv, v.
  2. ii, iv and v.
  3. i, ii and iv.
  4. i and v.
Question 5 True/False

With thorough testing it is possible to remove all defects from a program prior to delivery to the customer.

  1. True
  2. False
Question 6 Multiple Choice (Single Answer)

Which of the following are characteristics of testable software ?

  1. Observability
  2. Simplicity
  3. Stability
  4. All of the above
Question 7 Multiple Choice (Single Answer)

The testing technique that requires devising test cases to demonstrate that each program function is operational is called

  1. Black-box testing
  2. Glass-box testing
  3. Grey-box testing
  4. White-box testing
Question 8 Multiple Choice (Single Answer)

The testing technique that requires devising test cases to exercise the internal logic of a software module is called

  1. Behavioral testing
  2. Black-box testing
  3. Grey-box testing
  4. White-box testing
Question 9 Multiple Choice (Single Answer)

Black-box testing attempts to find errors in which of the following categories

  1. Incorrect or missing functions
  2. Interface errors
  3. Performance errors
  4. All of the above
  5. None of the above
Question 10 Multiple Choice (Single Answer)

What types of errors are missed by black-box testing and can be uncovered by white-box testing ?

  1. Behavioral errors
  2. Logic errors
  3. Performance errors
  4. Typographical errors
  5. Both b and d
Question 11 Multiple Choice (Single Answer)

The cyclomatic complexity metric provides the designer with information regarding the number of

  1. Cycles in the program
  2. Errors in the program
  3. Independent logic paths in the program
  4. Statements in the program
Question 12 Multiple Choice (Single Answer)

Condition testing is a control structure testing technique where the criteria used to design test cases is that they

  1. Rely on basis path 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
Question 13 Multiple Choice (Single Answer)

Data flow testing is a control structure testing technique where the criteria used to design test cases is that they

  1. Rely on basis path 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