What is the primary purpose of a component diagram in software engineering?
Think about how components relate to each other physically in a system.
Component diagrams focus on the physical structure of a system by showing components and their dependencies, unlike behavioral or UI diagrams.
Which of the following is NOT typically represented as a component in a UML component diagram?
Consider what components represent physically in the system.
User interface screens are usually modeled in other diagrams like use case or sequence diagrams, not as components.
In a component diagram, what does a dashed arrow with an open arrowhead between two components represent?
Think about how components rely on each other.
The dashed arrow with an open arrowhead indicates a dependency, meaning one component depends on another to function.
Which statement correctly distinguishes a component diagram from a deployment diagram?
Consider what each diagram type physically represents in a system.
Component diagrams focus on software components and their dependencies, while deployment diagrams show physical hardware and how software is deployed on it.
Given a system with three executable modules, two libraries, and one database, how many components should a UML component diagram ideally show to represent these parts?
Think about representing each distinct physical part separately.
Each executable, library, and the database are distinct physical parts and should be shown as separate components for clarity.