0% found this document useful (0 votes)
70 views10 pages

Multiple Choice Questions

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)
70 views10 pages

Multiple Choice Questions

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/ 10

Multiple Choice Questions

1)What is UML primarily used for?


A) Developing mobile applications
B) Modeling object-oriented software
C) Designing hardware circuits
D) Creating programming languages

2)Who were the key contributors to UML's development?


A) Alan Turing and Grace Hopper
B) James Rumbaugh, Grady Booch, and Ivar Jacobson
C) Dennis Ritchie and Brian Kernighan
D) Tim Berners-Lee and Vinton Cerf

3)What diagram represents the functionality of the system from the user's
point of view?
A) Class Diagram
B) Sequence Diagram
C) Use Case Diagram
D) Deployment Diagram

4)Which diagram shows the behavior of systems in terms of object


interactions?
A) Activity Diagram
B) Sequence Diagram
C) State Diagram
D) Component Diagram

5)In a use case diagram, what does the term "actor" refer to?
A) A software module
B) An external entity interacting with the system
C) A system administrator
D) A data storage device

6)What is the purpose of an "include" relationship in a use case diagram?


A) To represent a generalization between use cases
B) To reduce redundancy by identifying common use cases
C) To indicate optional functionality
D) To terminate a use case

7)What type of relationship is indicated by a solid line between an actor


and a use case?
A) Include
B) Extend
C) Communication
D) Inheritance

8)What is the key focus of a class diagram?


A) System behavior
B) Functional flow
C) Data structure and relationships
D) Deployment strategy

9)Which of these is NOT an association type in UML?


A) Reflexive
B) Aggregation
C) Composition
D) Execution

10) What is the defining feature of a composition relationship?


A) The parts can exist independently of the whole.
B) The destruction of the whole destroys the parts.
C) It is depicted with an open diamond.
D) It describes symmetric communication between entities.

11) Which symbol represents a starting point in an activity diagram?


A) Black circle
B) Diamond
C) Open diamond
D) Rectangle

12) Which of the following is NOT a characteristic of a state diagram?


A) Represents the static structure of the system
B) Models state transitions in response to events
C) Represents dynamic behavior
D) Uses start and end state symbols

13)What does a sequence diagram focus on?


A) System classes
B) Interactions over time
C) Deployment strategies
D) Business processes

14) What element is unique to a communication diagram compared to a


sequence diagram?
A) Activation boxes
B) Lifelines
C) Communication links
D) Time axis

15) What does the term "lifeline" represent in a sequence diagram?


A) The time duration an object is active
B) A communication path between objects
C) A set of parallel activities
D) A data flow path

16) What does the UML "lollipop" symbol represent?


A) An inheritance relationship
B) A composition
C) An interface
D) A use case

17) Which guideline is critical for class diagrams?


A) Center dashed lines for association classes
B) Use descriptive verbs for class names
C) Model keys in analysis diagrams
D) Avoid scaffolding code

18) In UML, what does an aggregation represent?


A) A weak "part-whole" relationship
B) A one-to-one association
C) The inheritance of attributes
D) An interface connection

19) What is a swimlane in an activity diagram used for?


A) Representing parallel processes
B) Grouping activities by actor or subsystem
C) Indicating decision points
D) Defining the start and end states

20) Which UML diagram is most suitable for modeling deployment?


A) Sequence Diagram
B) Activity Diagram
C) Deployment Diagram
D) Class Diagram

21) What is the purpose of stereotypes in UML?


A) Define roles of actors
B) Extend UML semantics for specific purposes
C) Simplify communication links
D) Create parallel activities

22)What is the visual representation of a "final state" in a state diagram?


A) Black circle
B) Diamond
C) Circle with a ring around it
D) Rectangle

23) Which diagram explores business processes or system logic?


A) Use Case Diagram
B) Activity Diagram
C) Class Diagram
D) Component Diagram

24) What is a "role name" in an association?


A) The title of the associated class
B) A label to clarify the purpose of the association
C) The attribute of an interface
D) The type of association being used
25) Which of the following diagrams has a vertical time axis?
A) Activity Diagram
B) Communication Diagram
C) Sequence Diagram
D) Deployment Diagram

26) Which UML element specifies a bidirectional association?


A) Arrow with a circle
B) Unidirectional arrow
C) Association without arrows
D) Dashed line

27) What is the focus of component diagrams?


A) Deployment architecture
B) System processes
C) Class relationships
D) Logical data flow

28) What is the symbol for a fork in an activity diagram?


A) Black bar
B) Diamond
C) Rectangle
D) Open circle

29) Which diagram type is used to describe external system behavior?


A) Sequence Diagram
B) Use Case Diagram
C) Class Diagram
D) Component Diagram

30)What is the relationship between a superclass and a subclass?


A) Aggregation
B) Composition
C) Generalization
D) Collaboration

Short Answer Answers

Define UML and its primary purpose.


UML (Unified Modeling Language) is a standard graphical language used to
model the design and behavior of object-oriented systems, helping in
visualizing, specifying, constructing, and documenting software systems.

List three main categories of UML diagrams.

Functional diagrams (e.g., Use Case Diagram)

Structural diagrams (e.g., Class Diagram, Component Diagram)

Behavioral diagrams (e.g., Sequence Diagram, Activity Diagram)


Explain the difference between an "include" and an "extend"
relationship in a use case diagram.

Include: Represents mandatory behavior reused by multiple use cases.

Extend: Represents optional behavior added to a base use case under certain conditions.

What are the primary elements in a class diagram?

Classes, Attributes, Operations/Methods, Associations, Generalizations, Aggregations,


and Compositions.

How is an interface represented in UML?

An interface can be shown as a small circle (lollipop) connected to a class or as a


rectangle with the label «interface» at the top.

What is the significance of a "state" in a state diagram?

A state represents the condition or situation of an object at a particular time, defined


by its attributes and behaviors.

Describe the purpose of a sequence diagram.

It visualizes the order of interactions between objects over time to validate and analyze
system functionality and logic.

What is the difference between aggregation and composition?

Aggregation: A "part-whole" relationship where parts can exist independently of the


whole.

Composition: A stronger "part-whole" relationship where parts cannot exist


independently.

Explain the concept of "swimlanes" in an activity diagram.

Swimlanes group activities by actor or subsystem, clarifying which entity is responsible


for specific actions.

Why is modeling important in software development?

Modeling simplifies complex systems by providing abstraction, improving


communication, and aiding in analyzing, designing, and documenting systems
effectively.
Questions on Where UML Can Be Used

1)What is UML primarily used for?


a) Hardware design
b) Software visualization and design
c) Data entry
d) Network monitoring
Answer: b

2)Which domain is NOT a common use of UML?


a) Business process modeling
b) Database modeling
c) Graphic design
d) Embedded systems
Answer: c

3)In software development, UML is used to:


a) Write code directly
b) Model and visualize the system
c) Replace programming languages
d) Perform hardware testing
Answer: b

4)Which of the following systems is UML unsuitable for modeling?


a) Web applications
b) Video editing software
c) Purely artistic content without structure
d) Financial systems
Answer: c

5)UML helps in which of the following stages of system maintenance?


a) Debugging code
b) Understanding and modifying systems
c) Data collection
d) Unit testing
Answer: b

6)Which of the following is NOT a building block of UML?


a) Things
b) Relationships
c) Patterns
d) Diagrams
Answer: c

7)What are structural things in UML?


a) Elements showing actions
b) Elements organizing model elements
c) Elements describing physical and conceptual entities
d) Notes for adding comments
Answer: c
8)Which building block organizes other model elements?
a) Behavioral Things
b) Grouping Things
c) Annotational Things
d) Structural Things
Answer: b

9)Which of the following is a behavioral thing?


a) Class
b) Object
c) Interaction
d) Component
Answer: c

10)Notes in UML are considered as:


a) Structural things
b) Behavioral things
c) Annotational things
d) Grouping things
Answer: c

11)What type of relationship is "is-a"?


a) Association
b) Generalization
c) Aggregation
d) Composition
Answer: b

12)A library having books is an example of:


a) Association
b) Aggregation
c) Composition
d) Realization
Answer: b

13)A stronger form of aggregation is called:


a) Dependency
b) Composition
c) Generalization
d) Realization
Answer: b

14)What does realization represent in UML?


a) A class inherits another class
b) A class implements an interface
c) A class depends on another class
d) A class contains another class
Answer: b
15)What relationship is depicted when one element depends on another?
a) Aggregation
b) Dependency
c) Composition
d) Association
Answer: b

16)Which of the following is NOT a structural diagram?


a) Class diagram
b) Component diagram
c) Activity diagram
d) Object diagram
Answer: c

17)Which diagram shows interactions over time?


a) State machine diagram
b) Sequence diagram
c) Class diagram
d) Deployment diagram
Answer: b

18)A diagram that represents workflows is:


a) Activity diagram
b) Use case diagram
c) Communication diagram
d) Deployment diagram
Answer: a

19)A physical deployment of artifacts is represented by which diagram?


a) Component diagram
b) Deployment diagram
c) Package diagram
d) State machine diagram
Answer: b

20)Which diagram represents user interactions?


a) Class diagram
b) Sequence diagram
c) Use case diagram
d) Timing diagram
Answer: c

21)The diagram that focuses on object message passing is:


a) State machine diagram
b) Communication diagram
c) Package diagram
d) Component diagram
Answer: b
22)What type of diagram combines activity and interaction diagrams?
a) Composite structure diagram
b) Timing diagram
c) Interaction overview diagram
d) Profile diagram
Answer: c

23)Which diagram shows states and transitions?


a) State machine diagram
b) Sequence diagram
c) Object diagram
d) Component diagram
Answer: a

24)Which diagram is best for customizing UML for specific platforms?


a) Class diagram
b) Interaction overview diagram
c) Profile diagram
d) Deployment diagram
Answer: c

25)Which diagram represents object instances at a specific moment?


a) Class diagram
b) Object diagram
c) Package diagram
d) Component diagram
Answer: b

26)Which of the following is NOT a UML diagram category?


a) Structural diagrams
b) Behavioral diagrams
c) Functional diagrams
d) Interaction diagrams
Answer: c

27)What relationship does NOT involve inheritance or implementation?


a) Generalization
b) Dependency
c) Association
d) Realization
Answer: c

28)The primary focus of a use case diagram is to model:


a) System architecture
b) Object behavior
c) User interactions and functionalities
d) Data structures
Answer: c
29)An activity diagram is most similar to:
a) A flowchart
b) A sequence diagram
c) A class diagram
d) A package diagram
Answer: a

30)Which diagram category represents static aspects of the system?


a) Behavioral diagrams
b) Interaction diagrams
c) Structural diagrams
d) Timing diagrams
Answer: c

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy