0% found this document useful (0 votes)
3 views

Multiple Choice Questions

The document contains multiple choice questions related to the Unified Modeling Language (UML), covering its purpose, components, and various types of diagrams. Key topics include class diagrams, use case diagrams, state diagrams, and the representation of elements like methods and interfaces. It also distinguishes between different UML diagrams and their specific roles in modeling software systems.

Uploaded by

Safia Mohamed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Multiple Choice Questions

The document contains multiple choice questions related to the Unified Modeling Language (UML), covering its purpose, components, and various types of diagrams. Key topics include class diagrams, use case diagrams, state diagrams, and the representation of elements like methods and interfaces. It also distinguishes between different UML diagrams and their specific roles in modeling software systems.

Uploaded by

Safia Mohamed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Multiple Choice Questions

21. What is the primary purpose of the Unified Modeling Language


(UML)?
a. To write executable code for software systems
b. To specify, visualize, construct, and document system artifacts
c. To manage hardware configurations
d. To test software performance
22. What does a UML model consist of?
a. A single diagram representing the entire system
b. Multiple views of a system formed by various diagrams
c. A detailed implementation plan for the system
d. A collection of hardware specifications
23. Which UML diagram shows the static structure of classes
and their relationships?
a. Sequence Diagram
b. Class Diagram
c. State Diagram
d. Activity Diagram
24. In a class diagram, how is a method classified?
a. As a constructor, query, or update operation
b. As an attribute or association
c. As a state or transition
d. As a package or stereotype
25. What does the multiplicity symbol “1..*” in a class diagram
indicate?
a. Exactly one instance
b. Zero or one instance
c. One or more instances
d. Zero or more instances
26. What does an object diagram primarily depict?
a. The states of a single object over time
b. The objects and their relationships at a specific moment
c. The sequence of messages between classes
d. The steps in a business process
27. What is the role of an actor in a use case diagram?
a. To represent a class within the system
b. To initiate a use case as a person or external system
c. To define the system’s internal operations
d. To document the system’s hardware requirements
28. Which diagram is best suited for capturing system
requirements from a user’s perspective?
a. Class Diagram
b. Use Case Diagram
c. Sequence Diagram
d. Component Diagram
29. In a state diagram, what does a transition represent?
a. The creation of a new object
b. A change from one state to another triggered by an event
c. A message sent between objects
d. A decision point in a process
30. Which symbol represents a final state in a state diagram?
a. A small filled-in circle
b. A rectangle with rounded corners
c. A circle with a solid filled-in circle inside (bull’s-eye)
d. A diamond shape
31. What does a focus of control in a sequence diagram
indicate?
a. The creation of a new object
b. When an object is sending or receiving messages
c. The end of an object’s lifeline
d. A decision point in the interaction
32. Which UML diagram highlights the steps and decision points
in a process?
a. State Diagram
b. Sequence Diagram
c. Activity Diagram
d. Collaboration Diagram
33. In an activity diagram, what shape represents a decision
point?
a. A rounded rectangle
b. A diamond
c. A circle
d. A dotted line
34. How does a collaboration diagram differ from a sequence
diagram?
a. It focuses on the static structure of classes
b. It shows object interactions with numbered messages instead
of time-based ordering
c. It depicts the states of a single object
d. It represents hardware deployment
35. What is the purpose of a UML package?
a. To execute a set of operations
b. To group related diagram elements, such as classes or
components
c. To define the system’s hardware configuration
d. To represent a single class’s attributes
36. How is a UML note represented in a diagram?
a. As a circle with a solid outline
b. As a rectangle with a folded corner containing explanatory text
c. As a tabbed folder
d. As a dotted arrow
37. What is a stereotype in UML?
a. A fixed diagram type that cannot be modified
b. A mechanism to create new elements by modifying existing
ones
c. A type of hardware component
d. A specific type of class with attributes only
38. How is an interface represented in a UML diagram?
a. As a class with only attributes
b. As a class with the label «Interface» above the class name
c. As a package with multiple classes
d. As a note with explanatory text
39. Which UML diagram is used to show the physical
deployment of software components?
a. Component Diagram
b. Deployment Diagram
c. Use Case Diagram
d. Object Diagram
40. Which of the following is NOT a common UML diagram listed
in the document?
a. Data Flow Diagram
b. Sequence Diagram
c. Activity Diagram
d. Collaboration Diagram

You might also like