当前位置:首页 > (完整word版)软件工程选择题
b. single operations as they are added to the evolving class implementation c. operator programs derived from use-case scenarios d. none of the above
8. Which of the following is an approach to debugging? Answer: e a. backtracking b. cause elimination
c. brute force d. code restructuring e. a, b and c
1. What is the normal order of activities in which traditional software testing is organized?Answer: c a. integration testing, unit testing, system testing, validation testing b. validation testing, unit testing, integration testing, system testing c. unit testing, integration testing, validation testing, system testing d. system testing, validation testing, integration testing, unit testing Answer: e
a. conduct formal technical reviews prior to testing b. specify requirements in a quantifiable manner c. use independent test teams
d. wait till code is written prior to writing the test plan e. answers a and b
3. Which of the following need to be assessed during unit testing? Answer: e a. algorithmic performance b. code stability c. error handling d. execution paths e. both c and d
4. When testing object-oriented software it is important to test each class operation separately as part of the unit testing process. Answer: b a. True b. False
5. Which of the following tests is a system test that forces the software to fail in a variety of ways and verifies that software is able to continue execution without interruption? Answer: d a. security testing b. performance testing c. stress testing d. recovery testing
6. Bottom-up integration testing has as it's major advantage(s) that Answer: c a. major decision points are tested early b. no drivers need to be written c. no stubs need to be written d. regression testing is not required
7. The OO testing integration strategy involves testing
2. Which of the following strategic issues needs to be addressed in a successful software testing process?
Answer: a
a. groups of classes that collaborate or communicate in some way b. single operations as they are added to the evolving class implementation c. operator programs derived from use-case scenarios d. none of the above
8. Which of the following is an approach to debugging? Answer: e
a. backtracking b. cause elimination
c. brute force d. code restructuring e. a, b and c Chapter 13
1. Which of the following are characteristics of testable software? Answer: d a. observability b. simplicity c. stability d. all of the above
2. The testing technique that requires devising test cases to demonstrate that each program function is operational is called? Answer: a a. black-box testing b. glass-box testing c. grey-box testing d. white-box testing
3. The testing technique that requires devising test cases to exercise the internal logic of a software module is called? Answer: d a. behavioral testing b. black-box testing c. grey-box testing d. white-box testing
4. 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 Answer: c 5. Black-box testing attempts to find errors in which of the following categories Answer: d a. incorrect or missing functions b. interface errors c. performance errors d. all of the above e. none of the above
6. Testing OO class operations is made more difficult by Answer: d a. encapsulation
b. inheritance c. polymorphism d. both b and c
7. What is the differences between black-box testing and white-box testing?
Answer: Black-box testing involves testing the functionality of a software component without knowing the details of its internal logic. White-box testing involves testing the independent logic paths with full implementation knowledge.
8. What is equivalence partitioning as it applies to software testing? What is scenario-based testing? Answer: Equivalence partitioning technique divides the input domain into classes of equivalent data items. Test cases are derived from combinations of elements from each equivalence class. Exhaustive testing of all input domain values is not necessary. Scenario-based testing: The user tasks described in the use-cases are used to construct the test cases. It is used to uncover errors that occur when actors interact with the software (focus is on user behavior, not product behavior).
1. Which of the following are characteristics of testable software? Answer: d a. observability b. simplicity c. stability d. all of the above
2. The testing technique that requires devising test cases to demonstrate that each program function is a. while-box testing b. glass-box testing c. grey-box testing d. black-box testing
3. The testing technique that requires devising test cases to exercise the internal logic of a software module is called? Answer:c a. behavioral testing b. grey-box testing c. while-box testing d. black-box testing
4. The cyclomatic complexity metric provides the designer with information regarding the number of a. Independent logic paths in the program b. cycles in the program c. errors in the program
d. statements in the program Answer: a 5. Black-box testing attempts to find errors in which of the following categories Answer: d a. incorrect or missing functions b. interface errors c. performance errors d. all of the above e. none of the above
6. Testing OO class operations is made more difficult by Answer: d a. polymorphism b. encapsulation
operational is called? Answer:d
c. inheritance d. both b and c
7. What is the differences between black-box testing and white-box testing?
Answer: Black-box testing involves testing the functionality of a software component without knowing the details of its internal logic. White-box testing involves testing the independent logic paths with full implementation knowledge.
8. What is equivalence partitioning as it applies to software testing? What is scenario-based testing? Answer: Equivalence partitioning technique divides the input domain into classes of equivalent data items. Test cases are derived from combinations of elements from each equivalence class. Exhaustive testing of all input domain values is not necessary. Scenario-based testing: The user tasks described in the use-cases are used to construct the test cases. It is used to uncover errors that occur when actors interact with the software (focus is on user behavior, not product behavior).
共分享92篇相关文档