第14章试题
1. In the most general sense a component is a modular building block for computer software.
A. TrueB. False
正确答案:A
2. In the context of object-oriented software engineering a component contains
A. attributes and operationsB. instances of each class
C. roles for each actor (device or user)
D. set of collaborating classes
正确答案:D
3. In traditional software engineering modules must serve in which of the following roles?
A. Control componentB. Infrastructure component
C. Problem domain component
D. All of the above
正确答案:D
4. Software engineers always need to cerate components from scratch in order to meet customer expectations fully.
A. TrueB. False
正确答案:B
5. Which of the following is not one of the four principles used to guide component-level design?
A. Dependency Inversion PrincipleB. Interface Segregation Principle
C. Open-Closed Principle
D. Parsimonious Complexity Principle
正确答案:D
6. The use of stereotypes can help identify the nature of components at the detailed design level.
A. TrueB. False
正确答案:A
7. Classes and components that exhibit functional, layer, or communicational cohesion are relatively easy to implement, test, and maintain.
A. TrueB. False
正确答案:A
8. Software coupling is a sign of poor architectural design and can always be avoided in every system.
A. TrueB. False
正确答案:B
9. In component design elaboration requires which of the following elements to be describe in detail?
A. AlgorithmsB. Attributes
C. Interfaces
D. Operations
E. b, c, d
正确答案:E
10. In component-level design persistent data sources refer to
A. Component librariesB. Databases
C. Files
D. All of the above
E. b and c
正确答案:E
11. WebApp content design at the component level focuses on content objects and the manner in which they interact.
A. TrueB. False
正确答案:B
12. A WebApp functional architecture describes the key functional components and how they interact with each other.
A. TrueB. False
正确答案:A
13. Component-level design for mobile apps is not any different from component-based design for Web apps.
A. TrueB. False
正确答案:A
14. Which of these constructs is used in structured programming?
A. branchingB. condition
C. repetition
D. sequence
E. b, c, d
正确答案:E
15. In component-based software engineering, the development team examines the requirements to see which are amenable to composition, rather than construction, before beginning detailed design tasks.
A. TrueB. False
正确答案:A
16. Which of the following is not one of the major activities of domain engineering?
A. analysisB. construction
C. dissemination
D. validation
正确答案:D
17. Which of the following factors would not be considered during component qualification?
A. application programming interface (API)B. development and integration tools required
C. exception handling
D. testing equipment required
正确答案:D
18. Which is the following is a technique used for component wrapping?
A. black-box wrappingB. clear-box wrapping
C. gray-box wrapping
D. white-box wrapping
正确答案:B
19. Which of the following is not one of the issues that form a basis for design for reuse?
A. object-oriented programmingB. program templates
C. standard data
D. standard interface protocols
正确答案:A
20. In a reuse environment, library queries are often characterized using the ________ element of the 3C Model.
A. conceptB. content
C. context
D. all of the above
正确答案:D