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)

  1. What is software design?
  2. Distinguish cohesion and coupling.
  3. Name the elements of the design model.
  4. What is a use case?
  5. What is a sequence diagram?
  6. Distinguish verification and validation.
  7. What is regression testing?
  8. What is boundary value analysis?
  9. Write the formula of cyclomatic complexity.
  10. What is alpha testing?

Medium Answer Questions (5 marks each)

  1. Explain the design concepts of abstraction, modularity and information hiding.
  2. Explain the architectural styles with examples.
  3. Explain the class diagram with its relations.
  4. Explain sequence and collaboration diagrams.
  5. Explain black-box and white-box testing.
  6. Explain the types of system testing.

Long Answer Questions (15 marks each)

  1. Explain the design process and design quality, and the elements of the design model.
  2. Explain the UML diagrams used for modeling, including class, use case, sequence, collaboration and component diagrams.
  3. Explain testing strategies for conventional software, and black-box and white-box techniques with cyclomatic complexity.
  4. 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