Legacy Code Modernization Quiz

5 questions Pass: 70% +25 pts (50 with Pro)

Quiz covering Enhance Productivity and Code Quality

What you'll be asked

  1. What is the primary purpose of writing 'characterization tests' before refactoring legacy code?
  2. When dealing with a large, monolithic legacy class, which refactoring technique is best suited to improve testability?
  3. What is the 'Strangler Fig' pattern in the context of legacy modernization?
  4. Why is it often recommended to avoid 'Big Bang' rewrites when modernizing legacy systems?
  5. You are working on a legacy module with tight coupling and no existing tests. What is the most effective first step to safely introduce changes?

Answers and explanations come after you submit.