Quiz 8

advertisement
Quiz 8
Multiple Choice
1. The four types of patterns are
a. Programming, Design, Use case, and Meta
b. Programming, Anti Patterns, Design, and Analysis
c. Programming, Design, Architectural, Analysis
d. Use Case, Anti Patterns, Design and Analysis
2. The most commonly used pattern is the
a. MVC
b. Delegation
c. Factory
d. Iterator
3. Below is an example of which The most commonly used pattern is the
a. MVC
b. Delegation
c. Factory
d. Iterator
Fill in the blanks
1. ______________The iterator pattern is an example of which type of pattern
2. ______________The MVC pattern is an example of which type of pattern
3. ______________The table mapper pattern is an example of which type of pattern
4. ______________The delegation pattern is an example of which type of pattern
5. ______________The party pattern is an example of which type of pattern
6. ______________The factory pattern is an example of which type of pattern
7. ______________The builder pattern is an example of which type of pattern
8. ______________The observer pattern is an example of which type of pattern
9. ______________The state pattern is an example of which type of pattern
10. ______________The strategy pattern is an example of which type of pattern
11. ______________ Without any more knowledge about this statement, you can be sure it
is an example of which type of pattern. Customer.checkcredit(customerid)
12. ______________ If you had an application that had a method that had functionality
(draw, redraw, color, move, etc) that had to do with a specific graphical figure such as a
square, circle, etc and the user selected the type of figure, you would need a common
entry into the methods of draw, redraw, etc. What pattern would be best to use in this
situation.
Download