题目内容

Which is true about a class's observance of the Single Responsibility Principle?

A. In general, we would expect to see a correlation between poor cohesion score and poor SOFA metrics
B. Low cohesion is a possible indicator of an opportunity to extract a class
C. If a class respects SRP, its methods probably respect SOFA
D. If a class's methods respect SOFA, the class probably respects SRP

查看答案
更多问题

The Rails ActiveRecord caching machinery nicely separates the logic for cache expiration from the rest of the app by adding ActiveRecord hooks to expire stale data. This is an example of effective use of the ---- design pattern.

A. Observer
B. Strategy
C. Factory
D. Singleton

Which of the following statements is FALSE?

A. Software that uses more design patterns isn’t necessarily better.
B. Well-designed software can evolve to the point where patterns become antipatterns.
C. Trying to apply design patterns too early can be just as bad as applying them too late.
D. Most design patterns are specific to a particular subset of programming languages.

Which expression statement regarding Reviews and Meetings is FALSE?

A. Intended to improve the quality of the software product using the wisdom of the attendees
B. They result in technical information exchange and can be highly educational for junior people
Can be beneficial to both presenters and attendees
D. The A’s in SAMOSA stands for Agenda and Action items, which are optional pieces of good meetings

Suppose you discover that your most recent release contains a bug whose regression test will require extensive mocking or stubbing because the buggy code is convoluted. Which action, if any, is NOT appropriate?- 未答复

A. Do the refactoring using TDD on the release branch, and push the bug fix as new code with tests
B. Do the refactoring using TDD on a different branch, push the bug fix as new code with tests, then cherry-pick the fix into release
Create a regression test with the necessary mocks and stubs, painful though it may be, and push the bugfix and tests to release branch
Depending on project priorities and project management, any of the above might be appropriate

答案查题题库