โ† All CPA Flashcard Decks

Software Development & Design Principles Flashcards

7 cards from real CPA practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 Software Development & Design Principles flashcards as text
  1. Which SOLID principle states that a class should have only one reason to change?

    Answer: Single Responsibility Principle

    The Single Responsibility Principle (SRP) states that a class should have only one responsibility and therefore only one reason to change.

  2. In the context of design patterns, which pattern provides a simplified interface to a complex subsystem?

    Answer: Facade

    The Facade pattern defines a simplified interface that makes a complex subsystem easier to use.

  3. What does the term 'cohesion' refer to in software design?

    Answer: The degree to which elements within a module belong together

    Cohesion measures how closely related and focused the responsibilities of a single module or class are.

  4. Which Agile ceremony is used to inspect the increment and adapt the Product Backlog?

    Answer: Sprint Review

    The Sprint Review is held at the end of a Sprint to inspect the increment and adapt the Product Backlog if needed.

  5. What is the primary purpose of refactoring code?

    Answer: Improving code structure without changing external behavior

    Refactoring improves the internal structure of code while preserving its observable behavior.

  6. Which design pattern separates the construction of a complex object from its representation?

    Answer: Builder

    The Builder pattern separates the construction of a complex object from its representation, allowing different representations to be created.

  7. In Test-Driven Development (TDD), what is the correct order of steps?

    Answer: Write test, write code, refactor

    TDD follows the Red-Green-Refactor cycle: write a failing test first, write code to pass it, then refactor.