ISE · Introduction to Software Engineering

Chapter 10 · Software Maintenance and Evolution

សំណួរ 10

ទំព័រនេះមិនបង្ហាញចម្លើយទេ។ ប្រើសំណួរទាំងនេះដើម្បីរំលឹកមេរៀន រួចពិនិត្យខ្លួនឯងជាមួយក្វីសសាកល្បងនៅចុងស្លាយ។
  1. សំណួរទី 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?

    • Corrective
    • Adaptive
    • Perfective
    • Preventive
  2. សំណួរទី 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...

    • Corrective maintenance, because every fault fix is corrective
    • Preventive maintenance: a latent fault fixed before it becomes a failure
    • Adaptive maintenance
    • Perfective maintenance
  3. សំណួរទី 3

    What does Lehman's law of increasing complexity state?

    • As a system changes, its complexity grows unless work is done to reduce it
    • A system becomes simpler as its bugs are fixed
    • The size of a system stays constant over its releases
    • Every system must be rewritten after five years
  4. សំណួរទី 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?

    • Reckless and deliberate
    • Reckless and inadvertent
    • Prudent and deliberate
    • Prudent and inadvertent
  5. សំណួរទី 5

    Which statement describes refactoring?

    • Adding a feature and cleaning the code in the same commit
    • Changing the internal structure without changing the observable behaviour, checked by tests
    • Rewriting the system in a new language
    • Fixing a bug that a user reported
  6. សំណួរទី 6

    Adding one new registration status forces edits in six different files. Which code smell is this?

    • Long Parameter List
    • Shotgun Surgery
    • Feature Envy
    • Data Class
  7. សំណួរទី 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?

    • 1.4.3
    • 1.5.0
    • 2.0.0
    • 1.5.2
  8. សំណួរទី 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?

    • 3
    • 4
    • 5
    • 6
  9. សំណួរទី 9

    What should a change impact analysis deliver before a change request is approved?

    • The finished code for the change
    • The affected requirements, models, code, tests and documents, with an effort estimate and the risks
    • Only the next version number
    • A retrospective of the last sprint
  10. សំណួរទី 10

    In a Keep a Changelog file, where do you announce that <code>listEvents(bool)</code> will be removed in the next major version?

    • Under Removed
    • Under Deprecated
    • Under Fixed
    • Nowhere: removing it later is enough