Q1. UML stands for:
(A) Unified Modeling Language
(B) Universal Modeling Library
(C) Unified Module Layout
(D) User Modeling Language
Answer: (A) Unified Modeling Language
Q2. The main purpose of UML is:
(A) Visualize, specify, construct, and document software systems
(B) Install hardware
(C) Write database queries
(D) Configure UI colors
Answer: (A) Visualize, specify, construct, and document software systems
Q3. UML is:
(A) A standard language for modeling software
(B) A coding language
(C) A database software
(D) A UI tool
Answer: (A) A standard language for modeling software
Q4. UML was developed by:
(A) Grady Booch, James Rumbaugh, and Ivar Jacobson
(B) Microsoft
(C) Oracle
(D) IBM only
Answer: (A) Grady Booch, James Rumbaugh, and Ivar Jacobson
Q5. UML diagrams are classified into:
(A) Structural and behavioral diagrams
(B) Hardware and software diagrams
(C) Coding diagrams
(D) UI diagrams only
Answer: (A) Structural and behavioral diagrams
Q6. Structural diagrams represent:
(A) Static aspects of a system
(B) Dynamic behavior
(C) Coding errors
(D) UI only
Answer: (A) Static aspects of a system
Q7. Behavioral diagrams represent:
(A) Dynamic aspects of a system
(B) Hardware setup
(C) UI screens
(D) Database only
Answer: (A) Dynamic aspects of a system
Q8. Class diagram is a type of:
(A) Structural diagram
(B) Behavioral diagram
(C) Deployment diagram
(D) Activity diagram
Answer: (A) Structural diagram
Q9. Object diagram shows:
(A) Objects and their relationships at a specific time
(B) Database only
(C) UI layout
(D) Hardware mapping
Answer: (A) Objects and their relationships at a specific time
Q10. Use case diagram is a type of:
(A) Behavioral diagram
(B) Structural diagram
(C) Deployment diagram
(D) Component diagram
Answer: (A) Behavioral diagram
Q11. Sequence diagram shows:
(A) Object interactions over time
(B) Static classes
(C) UI screens
(D) Hardware only
Answer: (A) Object interactions over time
Q12. Activity diagram models:
(A) Workflow or processes
(B) Class relationships
(C) Hardware setup
(D) Database tables
Answer: (A) Workflow or processes
Q13. State diagram represents:
(A) States and transitions of objects
(B) UI layout
(C) Hardware devices
(D) Coding errors
Answer: (A) States and transitions of objects
Q14. Communication diagram is used to:
(A) Show interactions among objects
(B) Deployment mapping
(C) Hardware setup
(D) Database only
Answer: (A) Show interactions among objects
Q15. Component diagram shows:
(A) Components and dependencies
(B) Coding files only
(C) UI layout
(D) Hardware mapping
Answer: (A) Components and dependencies
Q16. Deployment diagram shows:
(A) Physical mapping of software onto hardware
(B) Sequence of operations
(C) Object states
(D) UI screens
Answer: (A) Physical mapping of software onto hardware
Q17. Package diagrams group:
(A) Related classes or components
(B) Hardware devices
(C) Coding files only
(D) UI elements
Answer: (A) Related classes or components
Q18. UML is platform-independent because:
(A) It is a modeling language, not a programming language
(B) It requires Windows only
(C) It runs on Linux only
(D) It is tied to Java only
Answer: (A) It is a modeling language, not a programming language
Q19. Actor in UML represents:
(A) External entity interacting with the system
(B) Class object
(C) Hardware device
(D) Database only
Answer: (A) External entity interacting with the system
Q20. A use case represents:
(A) A system function from user perspective
(B) A class structure
(C) Database table
(D) Hardware module
Answer: (A) A system function from user perspective
Q21. Generalization in UML represents:
(A) Inheritance relationship
(B) Association only
(C) Aggregation only
(D) Deployment mapping
Answer: (A) Inheritance relationship
Q22. Aggregation represents:
(A) Whole-part relationship
(B) Coding file
(C) UI layout
(D) Hardware setup
Answer: (A) Whole-part relationship
Q23. Composition represents:
(A) Strong ownership in whole-part relationship
(B) Database connection
(C) UI only
(D) Coding shortcut
Answer: (A) Strong ownership in whole-part relationship
Q24. Association in UML denotes:
(A) Connection between classes
(B) Hardware link
(C) UI connection
(D) Database only
Answer: (A) Connection between classes
Q25. Multiplicity in UML defines:
(A) Number of instances in a relationship
(B) UI screens
(C) Database tables
(D) Coding files
Answer: (A) Number of instances in a relationship
Q26. Dependency represents:
(A) One element relies on another
(B) UI layout
(C) Database only
(D) Hardware only
Answer: (A) One element relies on another
Q27. Realization indicates:
(A) Implementation of an interface
(B) Class inheritance
(C) Aggregation
(D) UI design
Answer: (A) Implementation of an interface
Q28. Interaction diagrams include:
(A) Sequence and communication diagrams
(B) Class diagram only
(C) Deployment diagram only
(D) Package diagram only
Answer: (A) Sequence and communication diagrams
Q29. UML diagrams are useful for:
(A) Communication between stakeholders
(B) Coding only
(C) Hardware installation
(D) UI colors
Answer: (A) Communication between stakeholders
Q30. Timing diagram shows:
(A) Object behavior over time
(B) Database relationships
(C) UI layout
(D) Hardware setup
Answer: (A) Object behavior over time
Q31. UML 2.x version introduced:
(A) More detailed behavioral and structural diagrams
(B) Only class diagrams
(C) Hardware mapping
(D) UI screens
Answer: (A) More detailed behavioral and structural diagrams
Q32. UML diagrams help in:
(A) System analysis and design
(B) Coding only
(C) Hardware installation
(D) UI redesign
Answer: (A) System analysis and design
Q33. Interaction overview diagram is:
(A) Combination of activity and sequence diagrams
(B) Deployment diagram
(C) Class diagram
(D) Component diagram
Answer: (A) Combination of activity and sequence diagrams
Q34. Composite structure diagram shows:
(A) Internal structure of a classifier
(B) Database tables
(C) Hardware setup
(D) UI layout
Answer: (A) Internal structure of a classifier
Q35. UML is standardized by:
(A) Object Management Group (OMG)
(B) Microsoft
(C) Oracle
(D) ISO only
Answer: (A) Object Management Group (OMG)
Q36. Stereotype in UML provides:
(A) Extended meaning to model elements
(B) Hardware details
(C) UI layout
(D) Coding shortcut
Answer: (A) Extended meaning to model elements
Q37. Tagged values in UML are:
(A) Additional information for model elements
(B) UI colors
(C) Coding files
(D) Hardware details
Answer: (A) Additional information for model elements
Q38. Constraints in UML denote:
(A) Restrictions on elements or relationships
(B) Hardware only
(C) Coding only
(D) UI screens
Answer: (A) Restrictions on elements or relationships
Q39. Package in UML is used to:
(A) Group related model elements
(B) Database only
(C) Hardware only
(D) UI only
Answer: (A) Group related model elements
Q40. Actor multiplicity shows:
(A) Number of actors participating
(B) Database tables
(C) Hardware devices
(D) UI screens
Answer: (A) Number of actors participating
Q41. Include relationship in use case shows:
(A) Common functionality reused by multiple use cases
(B) Inheritance
(C) Aggregation
(D) Deployment mapping
Answer: (A) Common functionality reused by multiple use cases
Q42. Extend relationship in use case shows:
(A) Optional or conditional behavior
(B) Mandatory behavior
(C) Hardware only
(D) Database only
Answer: (A) Optional or conditional behavior
Q43. Swimlanes in activity diagrams:
(A) Represent responsibility of actors or classes
(B) Hardware setup
(C) Database mapping
(D) UI layout
Answer: (A) Represent responsibility of actors or classes
Q44. Fork in activity diagram represents:
(A) Parallel execution of activities
(B) Sequential activities
(C) UI screens
(D) Coding files
Answer: (A) Parallel execution of activities
Q45. Join in activity diagram represents:
(A) Synchronization of parallel activities
(B) Hardware only
(C) Database only
(D) UI screens
Answer: (A) Synchronization of parallel activities
Q46. Decision node in activity diagram indicates:
(A) Branching based on conditions
(B) Database only
(C) UI only
(D) Coding shortcut
Answer: (A) Branching based on conditions
Q47. Merge node in activity diagram indicates:
(A) Convergence of multiple branches
(B) Fork only
(C) UI screen only
(D) Hardware only
Answer: (A) Convergence of multiple branches
Q48. Lifeline in sequence diagram represents:
(A) Existence of an object over time
(B) UI screen
(C) Database table
(D) Hardware device
Answer: (A) Existence of an object over time
Q49. Message in sequence diagram shows:
(A) Communication between objects
(B) Database only
(C) UI only
(D) Hardware only
Answer: (A) Communication between objects
Q50. Activation in sequence diagram represents:
(A) Period when object is performing an action
(B) UI only
(C) Hardware only
(D) Database only
Answer: (A) Period when object is performing an actionQ51. State machine diagram models:
(A) Lifecycle of an object through states and transitions
(B) UI layout only
(C) Hardware mapping
(D) Database tables
Answer: (A) Lifecycle of an object through states and transitions
Q52. Initial state in a state diagram is:
(A) The starting point of an object’s lifecycle
(B) Final state
(C) Database only
(D) UI screen
Answer: (A) The starting point of an object’s lifecycle
Q53. Final state in a state diagram indicates:
(A) End of the object’s lifecycle
(B) Start of lifecycle
(C) Database only
(D) UI screen
Answer: (A) End of the object’s lifecycle
Q54. Transition in a state diagram represents:
(A) Movement from one state to another
(B) Database connection
(C) Hardware setup
(D) UI screen
Answer: (A) Movement from one state to another
Q55. Guard condition in a transition:
(A) Controls whether a transition occurs
(B) UI color
(C) Hardware only
(D) Coding shortcut
Answer: (A) Controls whether a transition occurs
Q56. Event in a state diagram triggers:
(A) A transition
(B) UI screen
(C) Database update only
(D) Hardware action
Answer: (A) A transition
Q57. Sequence diagram lifelines are represented by:
(A) Vertical dashed lines
(B) Horizontal arrows
(C) Boxes only
(D) Circles only
Answer: (A) Vertical dashed lines
Q58. Messages in sequence diagrams are shown by:
(A) Horizontal arrows
(B) Vertical lines
(C) Boxes only
(D) Circles only
Answer: (A) Horizontal arrows
Q59. Synchronous message means:
(A) Sender waits for response
(B) Sender does not wait
(C) Database only
(D) UI screen
Answer: (A) Sender waits for response
Q60. Asynchronous message means:
(A) Sender does not wait for response
(B) Sender waits
(C) UI only
(D) Hardware only
Answer: (A) Sender does not wait for response
Q61. Self-message in sequence diagram shows:
(A) Object calling its own method
(B) Object calling another object
(C) Database action only
(D) UI screen
Answer: (A) Object calling its own method
Q62. Communication diagrams emphasize:
(A) Structural organization of objects
(B) Database only
(C) UI screens
(D) Hardware only
Answer: (A) Structural organization of objects
Q63. Object diagrams are snapshots of:
(A) System at a particular point in time
(B) UI layout
(C) Database only
(D) Hardware devices
Answer: (A) System at a particular point in time
Q64. Component diagrams show:
(A) Software components and interfaces
(B) Database tables
(C) UI screens
(D) Hardware mapping
Answer: (A) Software components and interfaces
Q65. Node in deployment diagram represents:
(A) Hardware device
(B) Database table
(C) UI screen
(D) Coding module
Answer: (A) Hardware device
Q66. Artifact in deployment diagram represents:
(A) Deployed software module
(B) Database table only
(C) UI only
(D) Hardware device
Answer: (A) Deployed software module
Q67. Association in class diagram represents:
(A) Relationship between classes
(B) UI screens
(C) Hardware only
(D) Database only
Answer: (A) Relationship between classes
Q68. Multiplicity in association shows:
(A) Number of instances participating
(B) UI only
(C) Hardware only
(D) Database only
Answer: (A) Number of instances participating
Q69. Dependency in UML indicates:
(A) Change in one element affects another
(B) UI only
(C) Hardware only
(D) Database only
Answer: (A) Change in one element affects another
Q70. Realization relationship shows:
(A) Interface implementation by a class
(B) Inheritance
(C) Aggregation
(D) Hardware setup
Answer: (A) Interface implementation by a class
Q71. Generalization is depicted using:
(A) Hollow triangle arrow
(B) Solid line
(C) Dashed line
(D) Circle
Answer: (A) Hollow triangle arrow
Q72. Aggregation is depicted using:
(A) Hollow diamond
(B) Filled diamond
(C) Triangle
(D) Circle
Answer: (A) Hollow diamond
Q73. Composition is depicted using:
(A) Filled diamond
(B) Hollow diamond
(C) Triangle
(D) Circle
Answer: (A) Filled diamond
Q74. UML stereotypes are represented by:
(A) «stereotype» above element
(B) Color coding
(C) Dashed lines
(D) Circle only
Answer: (A) «stereotype» above element
Q75. Constraints in UML are represented by:
(A) {constraint} notation
(B) Boxes
(C) Lines only
(D) Circles only
Answer: (A) {constraint} notation
Q76. Tagged values in UML provide:
(A) Additional element information
(B) UI screens
(C) Hardware mapping
(D) Coding shortcuts
Answer: (A) Additional element information
Q77. Swimlanes in activity diagram represent:
(A) Responsibility of actors or classes
(B) Database only
(C) UI only
(D) Hardware only
Answer: (A) Responsibility of actors or classes
Q78. Fork node in activity diagram represents:
(A) Parallel execution
(B) Sequential execution
(C) UI screen
(D) Hardware only
Answer: (A) Parallel execution
Q79. Join node in activity diagram represents:
(A) Synchronization of parallel activities
(B) Database only
(C) UI only
(D) Hardware only
Answer: (A) Synchronization of parallel activities
Q80. Decision node in activity diagram shows:
(A) Conditional branching
(B) Parallel execution
(C) UI only
(D) Database only
Answer: (A) Conditional branching
Q81. Merge node in activity diagram shows:
(A) Convergence of branches
(B) Fork only
(C) UI screen
(D) Database only
Answer: (A) Convergence of branches
Q82. Timing diagram is used for:
(A) Time-based behavior of objects
(B) Database only
(C) UI only
(D) Hardware only
Answer: (A) Time-based behavior of objects
Q83. Interaction overview diagram combines:
(A) Activity and sequence diagrams
(B) Class and object diagrams
(C) UI screens only
(D) Hardware mapping
Answer: (A) Activity and sequence diagrams
Q84. Composite structure diagram shows:
(A) Internal structure of a classifier
(B) Database tables
(C) UI screens
(D) Hardware only
Answer: (A) Internal structure of a classifier
Q85. UML 2.x introduced:
(A) More precise behavioral and structural modeling
(B) Only class diagrams
(C) Hardware mapping
(D) UI layout only
Answer: (A) More precise behavioral and structural modeling
Q86. UML is standardized by:
(A) Object Management Group (OMG)
(B) Microsoft
(C) Oracle
(D) ISO only
Answer: (A) Object Management Group (OMG)
Q87. Interaction in UML represents:
(A) Message exchange between objects
(B) Database only
(C) Hardware only
(D) UI screens
Answer: (A) Message exchange between objects
Q88. Sequence diagram activation bar represents:
(A) Duration of an object’s action
(B) Database only
(C) UI only
(D) Hardware only
Answer: (A) Duration of an object’s action
Q89. UML is useful for:
(A) Communication among stakeholders
(B) Coding only
(C) Hardware setup
(D) UI design only
Answer: (A) Communication among stakeholders
Q90. Use case includes relationships like:
(A) Include and Extend
(B) Generalization only
(C) Association only
(D) Aggregation only
Answer: (A) Include and Extend
Q91. Interaction diagrams include:
(A) Sequence and communication diagrams
(B) Class diagrams only
(C) Component diagrams only
(D) Deployment diagrams only
Answer: (A) Sequence and communication diagrams
Q92. Object diagrams are snapshots of:
(A) System at a particular time
(B) Database only
(C) UI screens
(D) Hardware only
Answer: (A) System at a particular time
Q93. Deployment diagrams include:
(A) Nodes and artifacts
(B) Classes only
(C) UI screens only
(D) Coding modules
Answer: (A) Nodes and artifacts
Q94. Component diagrams help in:
(A) Visualizing software dependencies
(B) Database only
(C) UI screens only
(D) Hardware only
Answer: (A) Visualizing software dependencies
Q95. Package diagrams help in:
(A) Organizing model elements
(B) UI screens only
(C) Hardware only
(D) Coding files only
Answer: (A) Organizing model elements
Q96. Lifeline in sequence diagram is represented by:
(A) Vertical dashed line
(B) Horizontal arrow
(C) Box only
(D) Circle only
Answer: (A) Vertical dashed line
Q97. Synchronous message in sequence diagram:
(A) Waits for response
(B) Does not wait
(C) UI only
(D) Hardware only
Answer: (A) Waits for response
Q98. Asynchronous message in sequence diagram:
(A) Sender does not wait
(B) Sender waits
(C) UI only
(D) Hardware only
Answer: (A) Sender does not wait
Q99. Self-message in sequence diagram indicates:
(A) Object calls its own method
(B) Object calls another object
(C) UI only
(D) Database only
Answer: (A) Object calls its own method
Q100. The main goal of UML is:
(A) Provide standard way to visualize and document software design
(B) Install hardware only
(C) Coding shortcuts only
(D) UI design only
Answer: (A) Provide standard way to visualize and document software design