1. Home
  2. Explore
  3. Computer Science
  4. Software Design Principles

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Software Design Principles

  • 24Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Design Quality

According to the session, what most objectively indicates that a software design is good?

24 questions

  1. 1

    According to the session, what most objectively indicates that a software design is good?

    1. A

      The design was created by an experienced programmer

    2. B

      The design can be changed with minimal cost and effort

    3. C

      The design contains the largest number of features

    4. D

      The design remains unchanged after its initial release

    Correct answer
    B

    The design can be changed with minimal cost and effort

    Explanation

    A good design is described as one for which the cost of making changes is minimal.

  2. 2

    Why is evaluating a design only when a major change is required considered inadequate?

    1. A

      The requirements will always remain identical after deployment

    2. B

      The original developers may no longer remember the programming language

    3. C

      The design may already be difficult and expensive to change by then

    4. D

      The design can no longer be tested after it has been deployed

    Correct answer
    C

    The design may already be difficult and expensive to change by then

    Explanation

    Waiting until change is necessary may reveal that the design is already horrible and too costly to modify. Design quality should be assessed proactively.

  3. 3

    What practice is suggested for proactively evaluating whether a design is effective?

    1. A

      Subject the design to changes during development and observe how it holds up

    2. B

      Avoid changing the design until every feature has been implemented

    3. C

      Ask the original designer whether the design seems correct

    4. D

      Judge the design primarily by how quickly the first version was written

    Correct answer
    A

    Subject the design to changes during development and observe how it holds up

    Explanation

    The session recommends applying changes along the way to see whether the design remains easy to modify, then evolving it when necessary.

  4. 4

    What characteristic is presented as central to a good software design?

    1. A

      It is easy to change as new needs arise

    2. B

      It uses the most advanced available technology

    3. C

      It is completed perfectly in a single attempt

    4. D

      It prevents developers from revisiting earlier decisions

    Correct answer
    A

    It is easy to change as new needs arise

    Explanation

    The central definition of good design in the session is that it is easier to change.

  5. 5

    Why is the claim that a design is good because its creator made it considered insufficient?

    1. A

      It relies on personal authorship rather than an objective quality criterion

    2. B

      It focuses too heavily on the number of developers involved

    3. C

      It assumes that software designs cannot be evaluated by anyone else

    4. D

      It proves that the design has already been changed too many times

    Correct answer
    A

    It relies on personal authorship rather than an objective quality criterion

    Explanation

    The speaker rejects this definition because it is subjective and does not objectively establish whether the design is effective.

  6. 6

    Why should developers expect to revise a software design rather than complete it perfectly on the first attempt?

    1. A

      Repeated rewriting eliminates the need for design decisions

    2. B

      Creating high-quality designs generally requires iteration and improvement

    3. C

      The first implementation is usually discarded for performance reasons

    4. D

      Software requirements are always fully known before coding begins

    Correct answer
    B

    Creating high-quality designs generally requires iteration and improvement

    Explanation

    The session emphasizes that getting a good design right the first time is almost impossible, so developers must allow time for improvement.

  7. 7

    What analogy does the session use to support the value of iteration?

    1. A

      Great artists avoid preliminary work to preserve their original vision

    2. B

      Great artists often create prototypes before producing their masterpieces

    3. C

      Great artists improve their work mainly by using newer tools

    4. D

      Great artists complete masterpieces faster than software developers

    Correct answer
    B

    Great artists often create prototypes before producing their masterpieces

    Explanation

    The speaker notes that famous painters and sculptors often created several prototypes before arriving at a masterpiece.

  8. 8

    What mistaken expectation about software development is criticized?

    1. A

      That programmers should improve software over time

    2. B

      That programmers can write the code once and be finished

    3. C

      That programmers should test code before releasing it

    4. D

      That programmers need to understand changing requirements

    Correct answer
    B

    That programmers can write the code once and be finished

    Explanation

    The session criticizes the desire to sit down, write the code once, and declare the work complete.

  9. 9

    What does the statement that software is 'always rewritten' emphasize?

    1. A

      Software should be rewritten by a different team after every release

    2. B

      Software can be maintained without understanding its original purpose

    3. C

      Software should be discarded whenever a minor defect is found

    4. D

      Software development should include repeated revision and improvement

    Correct answer
    D

    Software development should include repeated revision and improvement

    Explanation

    The statement emphasizes that software should be given opportunities for rewriting and continuous improvement rather than treated as finished after one implementation.

  10. 10

    What can be inferred if someone claims that relevant software was written once and never needed to change?

    1. A

      The project was probably canceled or the software was no longer relevant

    2. B

      The software requirements were guaranteed to remain permanently stable

    3. C

      The software had reached a state where maintenance was impossible

    4. D

      The software was necessarily designed better than all evolving systems

    Correct answer
    A

    The project was probably canceled or the software was no longer relevant

    Explanation

    The session argues that relevant software must change; software that never changes likely belongs to a canceled or no-longer-relevant project.

  11. 11

    Why must software continually evolve according to the session?

    1. A

      Programming languages require every application to be rewritten annually

    2. B

      Relevant software must adapt to changing needs and circumstances

    3. C

      Software becomes unusable whenever developers add automated tests

    4. D

      Users generally prefer systems that change regardless of the reason

    Correct answer
    B

    Relevant software must adapt to changing needs and circumstances

    Explanation

    The speaker states that any software that remains relevant has to change and evolve.

  12. 12

    What does it mean to 'afford for change' in software design?

    1. A

      To create conditions that make future modifications practical

    2. B

      To postpone all design decisions until after deployment

    3. C

      To preserve the original implementation without modification

    4. D

      To increase the number of features before testing begins

    Correct answer
    A

    To create conditions that make future modifications practical

    Explanation

    Affording for change means designing and developing software so that it can be modified as it evolves.

  13. 13

    What is identified as the first and hardest step toward creating a better design?

    1. A

      Choosing a more complex architecture

    2. B

      Finishing the initial version quickly

    3. C

      Adding more implementation details

    4. D

      Letting go of personal ego

    Correct answer
    D

    Letting go of personal ego

    Explanation

    The session explicitly identifies letting go of ego as the first and hardest step in creating a better design.

  14. 14

    Why should developers let go of ego when evaluating their designs?

    1. A

      They must recognize that human-created designs cannot be perfect

    2. B

      They must treat every existing design as objectively worthless

    3. C

      They need to ensure that only managers make design decisions

    4. D

      They should avoid taking pride in any technical accomplishment

    Correct answer
    A

    They must recognize that human-created designs cannot be perfect

    Explanation

    Letting go of ego helps developers accept that they are human and cannot be perfect, making it easier to improve their designs.

  15. 15

    What position does the session take on ego in software development?

    1. A

      A balanced amount can motivate work, but excessive ego can obstruct progress

    2. B

      All ego is harmful because pride prevents every form of collaboration

    3. C

      More ego is always beneficial because it increases technical confidence

    4. D

      Ego has no relationship to motivation or progress in development

    Correct answer
    A

    A balanced amount can motivate work, but excessive ego can obstruct progress

    Explanation

    Ego is compared to cholesterol: some of it can provide pride and passion, but too much can interfere with progress.

  16. 16

    What does being unemotional about a design solution primarily involve?

    1. A

      Remaining unattached to a particular solution while focusing on the problem

    2. B

      Treating the problem as unimportant compared with the implementation

    3. C

      Avoiding discussion whenever another developer disagrees

    4. D

      Suppressing all enthusiasm for software development

    Correct answer
    A

    Remaining unattached to a particular solution while focusing on the problem

    Explanation

    Being unemotional means not becoming attached to one solution and instead remaining committed to solving the underlying problem.

  17. 17

    A developer proposes an approach and welcomes a colleague's better alternative. What principle does this demonstrate?

    1. A

      Commitment to solving the problem rather than defending personal ownership

    2. B

      Belief that the first idea is usually technically inadequate

    3. C

      Refusal to take responsibility for the proposed design

    4. D

      Preference for replacing collaboration with individual experimentation

    Correct answer
    A

    Commitment to solving the problem rather than defending personal ownership

    Explanation

    Inviting others either to use an idea or improve it reflects an unemotional focus on finding the best solution rather than protecting personal ownership.

  18. 18

    Why is it valuable for team members to challenge one another's ideas?

    1. A

      Challenge ensures that the most senior person always wins

    2. B

      Challenge can expose better ways to solve the problem

    3. C

      Challenge allows teams to avoid implementing proposed solutions

    4. D

      Challenge prevents developers from making any independent decisions

    Correct answer
    B

    Challenge can expose better ways to solve the problem

    Explanation

    The session emphasizes that people should be able to challenge each other and suggest something better.

  19. 19

    Which two types of people are described as dangerous to work with?

    1. A

      People who make prototypes and people who revise their designs

    2. B

      People who work independently and people who request feedback

    3. C

      People who cannot follow instructions and people who only follow instructions

    4. D

      People who ask questions and people who propose alternative solutions

    Correct answer
    C

    People who cannot follow instructions and people who only follow instructions

    Explanation

    The speaker identifies both people who cannot follow instructions and people who can only follow instructions as dangerous to work with.

  20. 20

    Why can someone who cannot follow instructions be dangerous to a software team?

    1. A

      They may improve the assigned approach without permission

    2. B

      They may identify a more efficient solution than expected

    3. C

      They may fail to act even after receiving clear direction

    4. D

      They may ask for clarification before beginning the task

    Correct answer
    C

    They may fail to act even after receiving clear direction

    Explanation

    The example describes a person who is given clear instructions but has still done nothing when the manager returns.

  21. 21

    Why can someone who only follows instructions be even more dangerous?

    1. A

      They may refuse to work unless every task is completely unspecified

    2. B

      They may challenge a weak design before it reaches production

    3. C

      They may independently solve a problem without seeking permission

    4. D

      They may execute the literal plan while ignoring an obviously better approach

    Correct answer
    D

    They may execute the literal plan while ignoring an obviously better approach

    Explanation

    Strictly following instructions can be dangerous when the person notices or encounters a better solution but refuses to pursue it because it was not explicitly requested.

  22. 22

    What kind of behavior should leaders encourage when team members discover a better approach than the original plan?

    1. A

      They should replace the original plan without informing anyone

    2. B

      They should follow the original plan until a manager formally changes it

    3. C

      They should avoid mentioning the alternative to prevent disagreement

    4. D

      They should have the confidence to deviate from the plan and explain the alternative

    Correct answer
    D

    They should have the confidence to deviate from the plan and explain the alternative

    Explanation

    The session argues that people should be empowered to deviate from a plan and return to challenge it with a better idea.

  23. 23

    What is the purpose of giving a team member direction without simply providing the complete answer?

    1. A

      To delay implementation until the manager has completed the task personally

    2. B

      To encourage the person to discover, implement, and explain a solution independently

    3. C

      To test whether the person can follow instructions without making decisions

    4. D

      To ensure that the manager remains the only person who understands the solution

    Correct answer
    B

    To encourage the person to discover, implement, and explain a solution independently

    Explanation

    The example shows the leader offering ideas and direction, then allowing the team member to find and implement the answer.

  24. 24

    A team member uses a leader's hints, finds an answer, and implements it independently. What capability does this example illustrate?

    1. A

      The ability to wait for a complete solution from a supervisor

    2. B

      The ability to follow instructions without interpreting them

    3. C

      The ability to use guidance while taking ownership of problem solving

    4. D

      The ability to avoid making changes to an assigned approach

    Correct answer
    C

    The ability to use guidance while taking ownership of problem solving

    Explanation

    The team member receives direction but independently figures out and implements the solution, demonstrating ownership and initiative.

Question 1 of 24
Question 1 of 24

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent