Which statement regarding design patterns is FALSE?
A. P-D processes have an explicit design phase that is a natural fit to the use of design patterns and thus will have a good SW architecture
B. P&D drawback: initial architecture & design patterns may change as code written and system evolves
C. Agile developers may plan for SW architectures and design patterns they expect to need based on previous, similar projects
D. None are false; All are true
查看答案
Which of the following would be reasonable uses of the Composite pattern in RottenPotatoes?a. Movies can be organized into Playlistsb. Moviegoers can be organized into groups
A. a. only
B. b. only
C. Both a. and b.
D. Neither a. nor b.
Which design pattern is used to invalidate a cached page after the underlying data has changed?
Adapter
B. Decorator
C. Strategy Observer
D. Observer
What technique allows fragment caching to prevent ActiveRecord from ever contacting the database even after an ActiveRecord query is made (such as Movie.all)?
A. Cache invalidation
B. Lazy evaluation
C. A content delivery network
D. Lambda calculus
You have just implemented several levels of caching in your web application. A user calls to tell you that when they visit the site, they see another user's name as the currently logged in user. Assuming that nobody else has used the user's computer, This problem could stem from a stale (select all that apply):
A. Browser cache
B. Page cache
C. Action cache
D. Query cache