1. Home
  2. Explore
  3. Computer Science
  4. Introduction to Software Engineering

Study methods

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

Introduction to Software Engineering

  • 90Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Software Engineering
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What distinguishes a professional software developer from a hobbyist programmer?

Tap to flipClick to flipspace

Professional software developers apply software engineering: a standardized, structured, and thorough approach to the entire development process.

Or swipe the card

90 cards

  1. What distinguishes a professional software developer from a hobbyist programmer?

    Professional software developers apply software engineering: a standardized, structured, and thorough approach to the entire development process.

  2. What is software engineering?

    Software engineering is a standardized, structured, and thorough approach to writing code and managing the development process from start to finish.

  3. Why must professional developers ensure they build the correct product?

    They must deliver a product that satisfies the customer's actual needs; otherwise, significant time and resources may be wasted.

  4. Why are coding standards important in professional software development?

    They promote consistency and make code easier to maintain over months or years and easier for teams to work on together.

  5. What qualities should software demonstrate under software engineering rigor?

    It should be correct, efficient, and secure.

  6. How does software engineering differ from informal hobbyist programming?

    Software engineering formalizes requirements, planning, architecture, development practices, testing, and maintenance instead of focusing only on writing code.

  7. Why is software engineering particularly important for large projects and teams?

    Large projects require consistent standards, organized modules, maintainable code, collaboration tools, and systematic testing.

  8. What is the general purpose of formalizing software development?

    To increase the likelihood that the correct product is built with maintainable, rigorous, correct, efficient, and secure code.

  9. What is requirements gathering?

    Requirements gathering is the process of discovering and documenting what customers and users need a system to do.

  10. Why does software engineering begin with requirements gathering?

    Because developers need to understand customer needs before development begins and avoid building the wrong product.

  11. Why might simply asking customers for a requirements list be insufficient?

    Customers may not know exactly what they want, and a list created by non-programmers may be long, incomplete, ambiguous, or difficult to use.

  12. What are three structured conversational techniques for gathering requirements?

    Surveys, interviews, and focus groups.

  13. How can observing users interact with existing software help gather requirements?

    Observation reveals users' established habits and pain points, which can guide the design of an improved system.

  14. What is use case analysis?

    Use case analysis describes a real usage scenario from the user's point of view, including how the user interacts with the system.

  15. What is a main success scenario in a use case?

    It is a series of intuitive, descriptive steps showing how a user and system achieve the desired outcome under normal conditions.

  16. What language should be used in a use case?

    Clear, intuitive, descriptive language without programming jargon.

  17. In a sales-system use case, what happens when a user adds a sale successfully?

    The user initiates adding a sale, supplies the sale name and quantity, and the system stores the information.

  18. How are error conditions represented in a use case?

    They describe alternative behavior when something goes wrong and specify how the system responds and where the interaction continues.

  19. What is a precondition in a use case?

    A condition that must be true before the use-case scenario can begin.

  20. What is a postcondition in a use case?

    A condition describing what is true or what happens after the scenario ends.

  21. What three pieces of information should a user story contain?

    It should identify who wants something, what they want to do, and why they want to do it.

  22. How do user stories differ from use cases?

    User stories are generally less detailed statements that emphasize who the user is, what they want, and why; use cases describe interaction steps and alternative scenarios in greater detail.

  23. What is a functional requirement?

    A requirement specifying what the system must do or which function it must provide.

  24. What is a non-functional requirement?

    A requirement describing a characteristic or quality of the system, such as performance, rather than a specific function.

  25. What is the purpose of building a prototype after requirements are organized?

    A prototype gives customers a concrete view of the interface, layout, and relationships between parts of the proposed system.

  26. Are software prototypes necessarily functional?

    No. Prototypes are often non-functional; they may even consist of presentation slides.

  27. How are prototypes refined during requirements work?

    Developers and customers review and modify the prototype repeatedly until user needs and requirements are sufficiently clear.

  28. What is the purpose of planning in software engineering?

    Planning determines how development will be approached over the coming weeks and months and how the system's parts will interact.

  29. How does planning relate temporally to requirements gathering and analysis?

    Planning often occurs concurrently with requirements gathering and analysis rather than only after them.

  30. Why is a development roadmap useful for a large software project?

    It provides an organized approach for developing the system and clarifies how its different parts interact.

  31. What is modularization?

    Modularization is the process of breaking a large program into smaller, organized components or modules.

  32. What two major design goals guide modularization?

    High cohesion within modules and low coupling between modules.

  33. What is cohesion?

    Cohesion measures how strongly the elements within a module are related to one another.

  34. What characterizes a highly cohesive module?

    Its functions and data are strongly related and contribute to one focused responsibility.

  35. Why is a generic utilities or tools module often an example of low cohesion?

    It groups unrelated tasks together merely because they do not have another obvious location.

  36. What is coupling?

    Coupling measures how dependent modules are on one another and how they interact.

  37. What characterizes highly coupled modules?

    They are highly dependent on each other, so modifying one often requires modifications elsewhere.

  38. What is the ideal case for coupling?

    No coupling: one module can be modified or replaced without requiring changes to other modules.

  39. How do low-coupling modules typically communicate?

    They pass messages or requests through defined interfaces without depending on each other's internal workings.

  40. How does a low-coupling game-engine design detect a collision?

    The game engine requests the player and enemy positions, compares them, and sends a health-update message to the player module if they collide.

  41. What is separation of concerns?

    Separation of concerns means each module handles its own responsibility and does not handle unrelated responsibilities or depend unnecessarily on other modules.

  42. What benefits result from separation of concerns?

    It improves code readability and maintainability and makes changes less likely to break unrelated parts of the program.

  43. What is a software design pattern?

    A design pattern is a standardized, reusable approach to solving a recurring software design problem.

  44. Why are design patterns encouraged in software engineering?

    They provide tried-and-tested solutions that improve readability and increase confidence in the design's correctness.

  45. What does MVC stand for?

    Model–View–Controller.

  46. What types of programs can benefit from the MVC pattern?

    Programs with data storage or logic that interact with a user interface.

  47. What is the role of the model in MVC?

    The model contains the data and the logic needed to retrieve or modify that data.

  48. What is the role of the view in MVC?

    The view presents model data to the user in a usable visual form.

  49. What is the role of the controller in MVC?

    The controller handles user interactions and provides controls that can change the displayed information or modify backend data.

  50. Why can users not typically interact directly with the MVC model?

    The model is an abstract, low-level representation of data and logic that is not presented in a form users can understand directly.

  51. How could MVC represent a sales system?

    The model stores sales records, the view displays them in a table, and the controller consists of controls such as sidebar buttons.

  52. What is substitutability in an MVC design?

    It is the ability to replace one MVC component with another without modifying unaffected components.

  53. How does MVC support changing the user interface presentation?

    The view can be replaced while the model and controller remain unchanged.

  54. How does MVC support different types of users, such as administrators?

    The controller can be replaced or extended to provide different controls while leaving the model and view unaffected.

  55. What are magic numbers?

    Magic numbers are unexplained numeric literals embedded in code whose meanings are not clear from their context.

  56. Why should developers avoid magic numbers?

    They reduce code readability because future readers may not know what the numbers represent.

  57. How can magic numbers be replaced?

    Extract them into variables, constants, or—in C++—macros with meaningful names.

  58. What is a good general rule for naming variables and functions?

    Choose names that clearly communicate what the variable represents or what the function does.

  59. What kind of names are preferred for functions?

    Action-oriented verb names, such as queryDatabase.

  60. Why is queryDatabase a better function name than database?

    queryDatabase identifies both the database-related target and the action performed by the function.

  61. How should Boolean variables be named for readability?

    They should clearly describe a state or condition, such as isOn.

  62. What is the purpose of a revision control system?

    It tracks code changes, preserves versions, allows developers to move between versions, and supports collaboration.

  63. How do revision control systems support collaboration?

    Multiple developers can commit their changes, which can then be merged into the shared project.

  64. What is automated testing?

    Automated testing uses tools to execute specified test cases against software and compare actual results with expected results.

  65. What is unit testing?

    Unit testing is automated testing of individual modules or functions.

  66. What is the fundamental purpose of testing?

    Testing compares a program's actual behavior with the expected behavior specified for it.

  67. How does a unit test determine whether a function works correctly?

    It supplies an input, specifies the expected result, runs the function, and compares the actual result with the expected result.

  68. What can a failed unit test reveal?

    It identifies that a problem exists and indicates the operation or expectation on which the module failed.

  69. Why are multiple unit tests useful?

    A collection of tests can quickly pinpoint which operations or behaviors are incorrect when some tests fail.

  70. What is integration testing?

    Integration testing evaluates whether multiple modules work together correctly.

  71. Why is integration testing necessary if individual modules pass their unit tests?

    Individually correct modules can still fail when connected incorrectly or when their interactions do not make sense.

  72. How could integration testing be applied to the sales-system example?

    An edit is performed through the controller, and the test checks whether the corresponding sales record in the model changes correctly.

  73. What is black-box testing?

    Black-box testing evaluates a module using its specifications, inputs, and outputs without considering its internal implementation.

  74. What is white-box, or glass-box, testing?

    White-box testing evaluates software with knowledge of and attention to its internal implementation.

  75. What is the key difference between black-box and white-box testing?

    Black-box testing focuses only on externally observable behavior, whereas white-box testing also examines internal implementation and execution paths.

  76. What is GUI testing?

    GUI testing verifies that visible user-interface elements respond to actions and produce the expected outcomes.

  77. What tools or techniques can support automated GUI testing?

    Screen capture, screen-reading tools, and automated generation of keystrokes or other user actions.

  78. What is security testing?

    Security testing evaluates whether software remains robust and free of flaws when exposed to potentially unexpected or malicious inputs.

  79. Why can randomized inputs be valuable in security testing?

    They help test how a system handles unexpected values and may expose vulnerabilities that planned inputs miss.

  80. What is code coverage?

    Code coverage measures how much of a program's code is exercised by tests.

  81. Why is achieving 100%100\%100% code coverage difficult?

    Programs contain many branches, loop behaviors, and possible states, making every execution possibility difficult or impossible to test thoroughly.

  82. What is the relationship between code coverage and testing quality?

    Greater code coverage is generally better because more of the program's behavior has been exercised by tests.

  83. What is test-driven development (TDD)?

    TDD is a development methodology in which tests are written before the corresponding code.

  84. What is the basic cycle of test-driven development?

    Write a test, run it and observe failure, write only enough code to make it pass, and repeat with another test.

  85. How does TDD help achieve good code coverage?

    Because each new behavior is defined by a test before implementation, the developing program accumulates tests as it grows.

  86. What are the four broad phases of the software engineering process described?

    Requirements gathering and analysis, planning, development, and testing.

  87. Are the phases of software engineering always strictly sequential?

    No. The phases can overlap and may sometimes occur concurrently.

  88. What happens after a product has been completed and the customer is satisfied?

    The product is deployed for use.

  89. Why does software development often restart after deployment?

    Customers may request improvements, enhancements, or bug fixes, requiring another cycle of requirements work, planning, prototyping, development, and testing.

  90. Why can the software engineering cycle continue indefinitely on large projects?

    Large systems are continually maintained, improved, enhanced, and corrected in response to changing needs and discovered problems.

Card 1 of 90
Card 1 of 90

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent