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)
- What is software design?
- Distinguish high-level and low-level design.
- What is a structure chart?
- Define cohesion and coupling.
- What is the best type of cohesion?
- Distinguish top-down and bottom-up design.
- State the three structures of structured programming.
- Why is exhaustive testing impractical?
- What is boundary value analysis?
- Write the formula of cyclomatic complexity.
Medium Answer Questions (5 marks each)
- Explain the basic concepts of software design.
- Explain architectural design with its styles.
- Explain structure charts and flow charts.
- Explain the types of coupling and cohesion.
- Explain the objectives and principles of structured programming.
- Explain the levels of testing.
Long Answer Questions (15 marks each)
- Explain architectural and low-level design with structure charts and flow charts.
- Explain coupling and cohesion in detail, and compare function-oriented and object-oriented design.
- Explain the goals of coding, programming style and structured programming, and the rules of user interface design.
- 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
