第16章试题
1. Which of the following is not one of the elements of a design pattern?
A. contextB. environment
C. problem
D. solution
正确答案:B
2. RubberNecking is an example of a classic generative pattern.
A. TrueB. False
正确答案:B
3. A frame work is a reusable mini-architecture that serves as a foundation which other design patterns can be applied?
A. TrueB. False
正确答案:A
4. Finding patterns built by others that address design problems is often more difficult that recognizing patterns in the application to be built.
A. TrueB. False
正确答案:A
5. A pattern language
A. encompasses a collection of patternsB. is implemented using hypertext
C. resembles the structure of natural languages
D. None of the above
正确答案:A
6. The concepts and techniques discussed for ___________ can be used in the conjunction with a pattern-based approach.
A. Architectural designB. Component-level design
C. User interface design
D. All of the above
正确答案:D
7. It is important to reduce the coupling among design patterns so that they can be treated as independent entities.
A. TrueB. False
正确答案:B
8. Real life design solutions may not always lend themselves to a top-down approach.
A. TrueB. False
正确答案:A
9. Which of the following problem types are used to label columns in a pattern organizing table?
A. BusinessB. Context
C. Database
D. Infrastructure
E. c and d
正确答案:E
10. Most mistakes in pattern-based design can be avoided by judicious use of review techniques.
A. TrueB. False
正确答案:A
11. Before choosing an architectural design pattern it must be assessed for its appropriateness to the application and overall architectural style.
A. TrueB. False
正确答案:A
12. Unlike architectural patterns, component-level design patterns may be applied to solve subproblems without regard to system context.
A. TrueB. False
正确答案:B
13. Most user interface design patterns fall with in one of ____ categories of patterns.
A. 5B. 10
C. 25
D. 100
正确答案:B
14. WebApp design patterns can be classified by considering which of the dimensions listed below?
A. AestheticsB. Design focus
C. Granularity
D. Usability
E. b and c
正确答案:E
15. Which of the following are levels of design focus that can be used to categorize WebApp patterns?
A. Behavioral patternsB. Functional patterns
C. Layout patterns
D. Navigation patterns
E. b and d
正确答案:E
16. Which of the levels of granularity that can be used to describe WebApp patterns?
A. Architectural patternsB. Component patterns
C. Design patterns
D. Interactions patterns
E. a, b, c
正确答案:E
17. Mobile app user interface patterns can be represented as a collection of best of breed screen images.
A. TrueB. False
正确答案:A