Unit summary
- Design converts requirements into a blueprint and must be modular, with high cohesion and low coupling.
- The design model has data, architectural, interface and component-level designs.
- Architectural styles include layered, client-server, data-centred and data-flow.
- UML class and use case diagrams show structure and services.
- Sequence, collaboration and component diagrams show interaction and parts.
- Testing moves from unit to integration to validation and system testing.
- Black-box testing uses the specification, and white-box testing uses the code.
- Cyclomatic complexity is E - N + 2, the number of independent paths.
- Validation includes alpha and beta tests, and system testing includes recovery, security, stress and performance tests.
- Debugging finds the cause of an error, and metrics measure the quality of the product.
Glossary
| Term | Meaning |
|---|---|
| Abstraction | Showing the essence and hiding the detail. |
| Alpha testing | Testing at the developer's site by a customer. |
| Architecture | The structure of components and their relations. |
| Beta testing | Testing at the user's site without the developer. |
| Black-box testing | Testing from the specification only. |
| Class diagram | A diagram of classes and their relations. |
| Cohesion | How strongly the elements of a module belong together. |
| Component diagram | A diagram of replaceable software parts. |
| Coupling | The dependence of modules on one another. |
| Cyclomatic complexity | A measure of the independent paths of a program. |
| Debugging | Finding and removing the cause of an error. |
| Metric | A quantitative measure of a property of software. |
| Sequence diagram | A diagram of messages in time order. |
| Software design | Translating requirements into a blueprint of the software. |
| Stub | A stand-in for a module called by the module under test. |
| UML | The standard graphical language for modeling software. |
| Use case | A service the system provides to an actor. |
| Validation | Checking that the product is the right one. |
| Verification | Checking that the product is built correctly. |
| White-box testing | Testing based on the internal structure of the code. |
Question bank
Short Answer Questions (2 marks each)
- What is software design?
- Distinguish cohesion and coupling.
- Name the elements of the design model.
- What is a use case?
- What is a sequence diagram?
- Distinguish verification and validation.
- What is regression testing?
- What is boundary value analysis?
- Write the formula of cyclomatic complexity.
- What is alpha testing?
Medium Answer Questions (5 marks each)
- Explain the design concepts of abstraction, modularity and information hiding.
- Explain the architectural styles with examples.
- Explain the class diagram with its relations.
- Explain sequence and collaboration diagrams.
- Explain black-box and white-box testing.
- Explain the types of system testing.
Long Answer Questions (15 marks each)
- Explain the design process and design quality, and the elements of the design model.
- Explain the UML diagrams used for modeling, including class, use case, sequence, collaboration and component diagrams.
- Explain testing strategies for conventional software, and black-box and white-box techniques with cyclomatic complexity.
- Explain validation testing, system testing and debugging, and the product metrics for analysis, design, source code, testing and maintenance.
Sources
- Official BCA syllabus Software Engineering, course code 26BCA403DS03, Unit III
