CORRECT ANSWERS
According to HFSD, following the Single Responsibility Principle means that:
Select one or more:
a. It is better not to have subclasses
b. One class should not refer to another
c. Each class does one thing
d. A class does not have repetitive code
e. The strategy pattern should be used to keep things separate - Answer- C
If you are following SRP, you're necessarily following DRY.
Select one:
True
False - Answer- False
Which of the following are features (or qualities) of refactoring according to HFSD
Appendix A, #5, as well as based on your common-sense knowledge of software
development, much of which might have been acquired in the last four weeks?
Select one or more:
a. Changes the structure/modularity of the program
b. Best to re-run your tests (performing regression testing) to make sure you haven't
unintentionally changed behavior
c. Doesn't require testing because refactoring’s are guaranteed not to break the code
d. Preserves the structure/modularity of the program
e. Should be saved up for a big refactoring session (e.g., at the end of a milestone)
f. Are reversible (invertible, undo-able, do-able in opposite direction)
g. Should be done little by little as you develop
h. Can be performed by hand (you don't need a special tool)
i. Preserves input-output behavior of the program
j. Changes input-output behavior of the program - Answer- A, B, F, G, H, I, & K
The "so that [benefit]" clause of a story narrative is important because it:
Select one or more:
a. supports judgments of the cost/benefit tradeoff of a user story
b. forces the development team to take the story seriously
c. makes sure that the user story actually has a benefit
d. reminds the customer why s/he asked for the feature when it's delivered