Composite Structure Diagram MCQs

By: Prof. Dr. Fazal Rehman Shamil | Last updated: May 29, 2024

1. What is the primary purpose of a Composite Structure Diagram in UML?

A) To show the dynamic behavior of the system
B) To depict the physical components of the system
C) To represent the internal structure of a classifier and the collaborations that this structure makes possible
D) To model the data flow in the system
Answer: C) To represent the internal structure of a classifier and the collaborations that this structure makes possible
2. Which of the following is NOT typically depicted in a Composite Structure Diagram?

A) Parts and ports of a classifier
B) Interfaces and connectors between parts
C) Sequence of interactions over time
D) Internal structure of a class
Answer: C) Sequence of interactions over time
3. In a Composite Structure Diagram, what is a “part”?

A) A static attribute of a class
B) A runtime instance of a class or a role played by a class
C) A sequence of operations
D) A user-defined function
Answer: B) A runtime instance of a class or a role played by a class
4. How are connections between parts typically shown in a Composite Structure Diagram?

A) Dotted lines
B) Solid lines with arrows
C) Solid lines without arrows
D) Double lines
Answer: C) Solid lines without arrows
5. What does a “port” represent in a Composite Structure Diagram?

A) A method within a class
B) An interface through which a classifier interacts with its environment
C) A data attribute
D) A dependency between two classes
Answer: B) An interface through which a classifier interacts with its environment
6. Which UML element is often used to encapsulate and organize the internal structure shown in a Composite Structure Diagram?

A) Class
B) Component
C) Package
D) Node
Answer: A) Class
7. How does a Composite Structure Diagram differ from a Class Diagram?

A) Composite Structure Diagrams show dynamic behavior, while Class Diagrams show static structure.
B) Composite Structure Diagrams depict the internal structure and collaborations within a class, while Class Diagrams show the relationships between classes.
C) Composite Structure Diagrams focus on user interactions, while Class Diagrams focus on data flow.
D) Composite Structure Diagrams illustrate system deployment, while Class Diagrams illustrate user requirements.
Answer: B) Composite Structure Diagrams depict the internal structure and collaborations within a class, while Class Diagrams show the relationships between classes.
8. What is a “connector” in a Composite Structure Diagram?

A) A type of class
B) A relationship that defines a link between parts
C) A user interface component
D) A data attribute
Answer: B) A relationship that defines a link between parts
9. In a Composite Structure Diagram, what is an “encapsulated classifier”?

A) A classifier that contains one or more ports
B) A classifier with no attributes
C) A classifier that only contains methods
D) A classifier used solely for testing purposes
Answer: A) A classifier that contains one or more ports
10. Which of the following is TRUE about Composite Structure Diagrams?

A) They are used to model the physical layout of hardware components.
B) They show how a system’s parts work together to achieve some purpose.
C) They are mainly used to depict high-level business processes.
D) They focus on the user interfaces and interactions within a system.
Answer: B) They show how a system’s parts work together to achieve some purpose.

Read More MCQs on UML Diagrams

  1. Deployment Diagram MCQs | UML
  2. Class diagram and object diagram MCQs | UML
  3. Use Case Diagram MCQs | UML
  4. UML diagrams solved MCQs UML
  5. UML Diagrams MCQs set 2
  6. Entity Relationship Diagram MCQs New
  7. Object-oriented analysis and design MCQs | UML
  8. Behavioral Modeling MCQs | UML Diagrams
  9. OOAD MCQs (Multiple Choice Questions Answers)
  10.  Object-Oriented Analysis And Design MCQs
  11.  Activity Diagram MCQs
  12. Sequence Diagram MCQs
  13. Communication Diagram MCQs
  14. State Machine Diagram MCQs
  15. Component Diagram MCQs
  16. Package Diagram MCQs
  17. Composite Structure Diagram MCQs
  18. Timing Diagram MCQs
  19. Interaction Overview Diagram MCQs
  20. Profile Diagram MCQs
  21. Behavioral Modeling MCQs
  22. MCQs: How many use cases, classes, sequences, DFD, ERD diagrams, etc are drawn for a system in the Final year project?