Unit summary

  • Design converts the SRS into modules and their logic, in high-level and low-level stages.
  • Architectural styles include layered, client-server, pipe and filter, repository and MVC.
  • Structure charts show module hierarchies and flow charts show module logic.
  • A good design has high cohesion and low coupling.
  • Function-oriented and object-oriented design, and top-down and bottom-up approaches, are alternative strategies.
  • A good user interface is consistent, gives feedback and allows undo.
  • Coding aims at correct, readable, testable and maintainable programs, and structured programming uses sequence, selection and iteration.
  • Exhaustive testing is impractical, so test cases are chosen with care.
  • The levels of testing are unit, integration, system and acceptance.
  • Black-box and white-box techniques together give good test coverage.

Glossary

Term Meaning
Architectural design High-level design of components and their relations.
Bottom-up design Design that builds from the lowest-level modules.
Boundary value analysis Testing at the edges of classes.
Cohesion The strength of relation within a module.
Coupling The degree of dependence among modules.
Cyclomatic complexity The number of independent paths of a program.
Equivalence partitioning Dividing inputs into classes treated alike.
Failure Incorrect behaviour seen in use.
Fault A defect in the code.
Flow chart A chart of the logic of a module.
Function-oriented design Design based on functions that transform data.
GUI A graphical user interface of windows, icons and pointers.
Integration testing Testing the interfaces among modules.
Module A named unit of a program with a defined interface.
Object-oriented design Design based on classes and objects.
Programming style Guidelines that make code readable.
Structure chart A chart of the module hierarchy and data passed.
Structured programming Programming using sequence, selection and iteration.
Top-down design Design that refines from the whole to the parts.
Unit testing Testing a single module.

Question bank

Short Answer Questions (2 marks each)

  1. What is software design?
  2. Distinguish high-level and low-level design.
  3. What is a structure chart?
  4. Define cohesion and coupling.
  5. What is the best type of cohesion?
  6. Distinguish top-down and bottom-up design.
  7. State the three structures of structured programming.
  8. Why is exhaustive testing impractical?
  9. What is boundary value analysis?
  10. Write the formula of cyclomatic complexity.

Medium Answer Questions (5 marks each)

  1. Explain the basic concepts of software design.
  2. Explain architectural design with its styles.
  3. Explain structure charts and flow charts.
  4. Explain the types of coupling and cohesion.
  5. Explain the objectives and principles of structured programming.
  6. Explain the levels of testing.

Long Answer Questions (15 marks each)

  1. Explain architectural and low-level design with structure charts and flow charts.
  2. Explain coupling and cohesion in detail, and compare function-oriented and object-oriented design.
  3. Explain the goals of coding, programming style and structured programming, and the rules of user interface design.
  4. Explain the levels of testing, and white-box and black-box testing with examples.

Sources

  • Official BCA syllabus Advanced Software Engineering, course code 25BCA405DS01, Unit III