31-10-2012, 12:23 PM
Self-Check Quiz : Test Strategies
testquiz.doc (Size: 145 KB / Downloads: 46)
1. With thorough testing it is possible to remove all defects from a program prior to delivery to the customer.
a. True
b. False
2. Which of these are objectives for software testing?
a. determine the productivity of programmers
b. eliminate the need for future program maintenance
c. eliminate every error prior to release
d. uncover software errors
3. Test cases should be designed long before testing begins.
a. True
b. False
4. Which of the following are characteristics of testable software?
a. observability
b. simplicity
c. stability
d. all of the above
5. The testing technique that requires devising test cases to demonstrate that each program function is operational is called
a. black-box testing
b. glass-box testing
c. grey-box testing
d. white-box testing
6. The testing technique that requires devising test cases to exercise the internal logic of a software module is called
a. behavioral testing
b. black-box testing
c. grey-box testing
d. white-box testing
7. What types of errors are missed by black-box testing and can be uncovered by white-box testing?
a. behavioral errors
b. subtle logic errors
c. performance errors
d. input error
8. Program flow graphs are identical to program flowcharts.
a. True
b. False
9. The cyclomatic complexity metric provides the designer with information regarding the number of
a. cycles in the program
b. errors in the program
c. independent logic paths in the program
d. statements in the program
10. The cyclomatic complexity of a program can be computed directly from a PDL representation of an algorithm without drawing a program flow graph.
a. True
b. False
11. Condition testing is a control structure testing technique where the criteria used to design test cases is that they
a. rely on basis path testing
b. exercise the logical conditions in a program module
c. select test paths based on the locations and uses of variables
d. focus on testing the validity of loop constructs
12. Data flow testing is a control structure testing technique where the criteria used to design test cases is that they
a. rely on basis path testing
b. exercise the logical conditions in a program module
c. select test paths based on the locations and uses of variables
d. focus on testing the validity of loop constructs
13. Loop testing is a control structure testing technique where the criteria is used to design test cases so that they
a. rely basis path testing
b. exercise the logical conditions in a program module
c. select test paths based on the locations and uses of variables
d. focus on testing the validity of loop constructs
14. Black-box testing attempts to find errors in which of the following categories
a. incorrect or missing functions
b. interface errors
c. performance errors
d. all of the above