Back to the 2024 paper

Module 3: Software Design & Metrics

20242m

What is the main purpose of using UML (Unified Modeling Language) in software design?

(i) To write executable code
(ii) To visualize and document software architecture
(iii) To enforce coding standards
(iv) To test software functionality

Worked SolutionAI Assisted

Answer: (ii) To visualize and document software architecture

UML (Unified Modeling Language) is a standardized visual modeling language used to visualize, specify, construct, and document the artifacts of a software system — architecture, design, and behaviour — through diagrams (class, use-case, sequence, deployment, etc.).

Why the others are wrong:

  • (i) To write executable code — UML is a modeling language; code generation is possible but not its main purpose.
  • (iii) To enforce coding standards — coding standards are separate; UML specifies design, not coding rules.
  • (iv) To test software functionality — testing uses the design but UML itself is not a testing tool.

So the main purpose of UML is to visualize and document software architecture — option (ii).

Similar questions

Official AppAndroid App

PYQDeck for Android

Solve BEU previous-year exam papers anywhere, anytime. Fast search, offline paper viewing, and step-by-step solutions designed specifically for your phone.