Chapter 10 · Software Maintenance and Evolution
10 questions
-
Question 1
The institute changes student IDs from 9 to 10 characters, and Club Hub now rejects every new ID. Which maintenance category is the change to Club Hub?
-
Question 2
A code review finds that the seat counter can go negative if <code>cancel</code> is called twice, although no user has ever hit it. Fixing it now is...
-
Question 3
What does Lehman's law of increasing complexity state?
-
Question 4
A team says: "We store data in CSV for the demo, and we logged a backlog item to move to JSON next sprint." Which kind of technical debt is this?
-
Question 5
Which statement describes refactoring?
-
Question 6
Adding one new registration status forces edits in six different files. Which code smell is this?
-
Question 7
Club Hub is at version 1.4.2. You add a CSV export command, and nothing existing changes. What is the next version under SemVer?
-
Question 8
A C++ function contains one <code>for</code> loop and two <code>if</code> statements, and one of the <code>if</code> conditions uses <code>&&</code>. What is its cyclomatic complexity?
-
Question 9
What should a change impact analysis deliver before a change request is approved?
-
Question 10
In a Keep a Changelog file, where do you announce that <code>listEvents(bool)</code> will be removed in the next major version?