wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

IS-CS 353 A | Object-Oriented Analysis & Design

Total questions: 90

Worksheet time: 30mins

Name
Class
Date
1.
Which diagram is a good representation to show sequence of actions for multiple objects and use cases
a)
State Diagram
b)
Sequence Diagram
c)
Collaboration Diagram
d)
Activity Diagram
2.
Which of the following statements is NOT TRUE about associations in class diagrams
a)
Associations represent relationships between instances of classes
b)
Associations are the processes that a class will perform
c)
The association can be scalar
d)
The union can go both ways
3.
Which of the following is not a property of an object?
a)
Identity
b)
Behavior
c)
Action
d)
State
4.
Which relation to use when we want to create a new use case by adding some steps to an existing use case?
a)
Include
b)
Generalization
c)
Extend
d)
Delegation
5.
The relationship between class 1 and class 2 is:
a)

Generalization

b)

Aggregation

c)

Composite

d)

Association

6.
During what stage of the RUP software development process do we assess the risk of the components used
a)
Initialization (Inception)
b)
Elaboration
c)
Construction
d)
Transition
7.
Which statement is true about the figure below?
a)

Foobar is Barfoo's son

b)

Barfoo is the son of Foobar

c)

Foobar realizes Barfoo

d)

Barfoo Realizes Foobar

8.
Which diagram shows instances in a system at a time?
a)
Object Diagram
b)
Class Diagram
c)
Component Diagram
d)
System Diagram
9.
What is the outcome of the Elaboration phase of the RUP process?
a)
Functional Requirements (Use Cases)
b)
Foundation for end-to-end cost assessment
c)
Non-functional requirements in Supplementary detail table
d)
All of the above statements are correct
10.
Which diagram is a good representation to describe the behavior of multiple objects in a use case
a)
State Diagram
b)
Collaboration Diagram
c)
Activity Diagram
d)
Class Diagram
11.
What is the difference between a sequence diagram and a collaboration diagram?
a)
Emphasize the role of the agent interacting with the system
b)
Emphasize sequence or order of messages
c)
Emphasize the collection of collaborators
d)
Emphasize execution by a particular person
12.
Which diagram describes the types of objects and the different static relationships between them
a)
Class Diagram
b)
Collaboration Diagram
c)
State Diagram
d)
Activity Diagram
13.
What is the purpose of the State Diagram?
a)
Representing an object that changes state across multiple use cases
b)
Representing multiple objects that change state across multiple use cases
c)
Static representation of concepts, types, and classes
d)
Help provide the primary purpose of the class
14.
A subclass inherits from the superclass
a)
Attributes, links
b)
Attributes, operations
c)
Attributes, operations, relationships
d)
Relationships, operations, links
15.
In what situations is Activity Diagram used?
a)
Show how objects collaborate with each other
b)
Representing the behavior of objects over their lifetime
c)
Expression of complex logic conditions
d)
All of the above statements are wrong
16.
What is the purpose of a class diagram?
a)
Represent behavior with control structure
b)
Static representation of concepts, types, and classes
c)
Helps to understand the basic purpose of the class
d)
Representation of the layout of components on hardware nodes
17.
The Life cycle of a class is represented by:
a)
Collaboration Diagram
b)
State Diagram
c)
Class Diagram
d)
Deployment Diagram
18.
An entity that has a well-defined role in an application's resources and whose state, behavior, and format define:
a)
Class
b)
Agent
c)
Object
d)
Attributes
19.
What is UML?
a)
Is a programming language similar to Java
b)
Is a special language used to generate code automatically for projects
c)
tool, check the consistency ( the model, the source code)
d)
It's all wrong
20.
The Circle class drawn with UML says the "+isVisible()" behavior is:
a)
protected
b)
private
c)
public
d)
inherit
21.
which UML diagram would be use to represent physical relationships between software and hardware
a)
Deployment Diagram
b)
Activity Diagram
c)
Class Diagram
d)
State Diagram
22.
For the following diagram, which statement is true?
a)

A uses B, required

b)

A uses B, optional

c)

B uses A, required

d)

B uses A, optional

23.
Which of the following statements is true about Sequence Diagrams?
a)
Each message is represented by arrow between the lives of 2 objects
b)
Each message is represented by a dashed vertical line (2)
c)
Each message must be labeled with the message name followed by a number (3)
d)
Sentences (1) and (3) are correct
24.
Which of the following statements is TRUE?
a)
A class is an encapsulation of an object
b)
A class represents the hierarchy of an object
c)
A class is an instance of an object
d)
A class is an abstract definition of an object
25.
Which of the following is NOT a use case property?
a)
Depends on the system implementation
b)
Show the functionality of the system from the user's point of view
c)
Show system at high level
d)
Focusing only on the user's expected needs
26.
Which is the best description of the actor in the Use case model?
a)
limited to the user who interacts with the system
b)
any entity outside the system that interacts with the system
c)
limited to the systems for which it interacts with the system
d)
The actor that provides data to the system
27.
Which statement is true about Activity Diagram?
a)
A branch has one incoming operation and multiple outgoing operations
b)
A synchronous merge of concurrent threads (2)
c)
Both (1) and (2) are correct
d)
Both (1) and (2) are wrong
28.
What notation is used to represent a use case?
a)
Rectangle
b)
Ellipse
c)
Cornered rectangle
d)
Triangle
29.
Which of the following statements is NOT TRUE?
a)
The description of the use-cases to find and analyze the class and its objects
b)
There is at least one boundary object for each actor and use-case pair
c)
There is a control class for each use-case
d)
Entity are identified by examining nouns and noun phrases
30.
Polymorphism can be described as:
a)
Hide various settings based on the same interface
b)
Different properties and methods of subclasses having the same superclass
c)
Association classes with {or} constraint
d)
Generalization of inherited subclasses
31.
Which of the following is not a UML diagram?
a)
Component diagram
b)
State diagram
c)
Deployment diagram
d)
Relationship diagram
32.
The life history of an object is modeled in a:
a)
Statechart diagram
b)
Use case diagram
c)
Sequence diagram
d)
Object diagram
33.
What are the names of the objects in the schema?
a)

joe and jane

b)

Employee and Customer

c)

communicate and purchase

d)

It's all wrong

34.
Which of the following is the correct attribute declaration?
a)
# balance: Double
b)
username
c)
initialBalance: 0.0
d)
*pointer
35.
With which relationship a component belongs only to a whole. These components always exist and disappear with the whole?
a)
Aggregation
b)
Composition
c)
Classification
d)
Generalization
36.
In what stage of the RUP software development process do we perform system installation, product testing?
a)
Initialization (Inception)
b)
Elaboration
c)
Construction
d)
Transition
37.
Which of the following is true?
a)
There is no restriction on multiple associations between two classes
b)
many associations between 2 same classes, must have different meanings
c)
It is not allowed to represent many associations on the same 2 classes
d)
Associations between the same 2 classes must be grouped into 1 association
38.
"Purchase" is the name of:
a)

Subjects

b)

Class

c)

Message

d)

Transmission line

39.
A relationship between two classes in the class model:
a)
Inheritance between two classes
b)
Allows interaction between two layers
c)
Allows interaction between objects of two classes
d)
Show dependencies between two classes
40.
The relationship between class 10 and class 11 is:
a)

Dependency

b)

Aggregation

c)

Composition

d)

Realization

41.
Which of the following is a class?
a)

Abstract

b)

Utility

c)

Template

d)

Instantiated

42.
A "has a" relationship is the best description for:
a)
Polymorphism
b)
Composition
c)
Aggregation
d)
Inheritance
43.
Which of the following diagrams describes the dynamic behavior of a software system?
a)
Class Diagram and Object Diagram
b)
Use-case diagrams and class diagrams
c)
Collaboration and Deployment Diagrams
d)
Sequence diagrams and collaboration diagrams
44.
The Collaboration model is:
a)
represents the sequence of messages between objects throughout a use case
b)
The model shows how objects work together to perform a use case
c)
Model represents the interaction between objects
d)
A model that represents the different user roles
45.
A class is described as a collection of objects that share the same:
a)
Attributes, behavior and operations
b)
Identity, behavior and state
c)
Attributes, operations, and relationships
d)
Relationships, operations (actions) and multiplicity
46.
Which diagram is used to group classes together for ease of use, maintenance, and reuse?
a)
States
b)
Use Cases
c)
Context Model
d)
Packages
47.
In a sequence diagram, the symbol --------> (arrow) represents ?
a)
Message
b)
Condition
c)
Iteration
d)
Delete object
48.
Which of the following statements is true about use cases?
a)
Use Cases represent an external view of the system (1)
b)
correlation between Use Cases and the inner layer (2)
c)
no correlation between Use Cases and the inner layer (3)
d)
Sentences (1) and (3) are correct
49.
Which of the following is not considered one of the fathers of object-oriented methodology?
a)
Rumbaugh
b)
Booch
c)
Kenighan
d)
Jacobson
50.
In what situations is Activity Diagram used?
a)
Analyze a use case
b)
Describe complex sequential algorithms, build flowcharts
c)
Regarding multithreaded applications
d)
All of the above statements are correct
51.
To organize elements into reusable groups with information hiding, use one of the UML constructs?
a)
Package
b)
Class
c)
Classes and interfaces
d)
Subsystem or Component
52.
The UML diagram below is a representation of a:
a)

Class

b)

Object

c)

Actor

d)

Use case

53.
Which of the following is NOT an actor?
a)
Customers
b)
Credit system
c)
System clock
d)
It's all wrong
54.
Each message in the Sequence diagram will be mapped to?
a)
An attribute
b)
A dependency relationship
c)
An operation
d)
It's all wrong
55.
What is the purpose of a Deployment Diagram?
a)
Represent behavior with control structure
b)
Static representation of concepts, types, and classes
c)
Helps to understand the basic purpose of the class
d)
Representation of the layout of components on hardware nodes
56.
What type of Diagram represents the same information as a sequence diagram?
a)
State Diagram
b)
Activity diagram
c)
Collaboration Diagram
d)
Object diagram
57.
Which of the following statements is TRUE about state diagrams?
a)
good way to represent the behavior of an object across many Use Cases
b)
a good way to represent the behavior of many objects across many Use Cases
c)
good way to represent the behavior of many objects in a Use Case
d)
good way to represent sequence of actions for objects and Use Cases
58.
Which relationship to use when reduce duplicate steps between use cases?
a)
Include
b)
Generalization
c)
Extend
d)
Delegation
59.
In a sequence diagram, the * represents ?
a)
Message
b)
Condition
c)
Iteration
d)
Delete object
60.
In a use-case diagram, an actor is represented by:
a)
A role is a person, another hardware device or system
b)
Same user performing different actions
c)
A user, customer and not interested in their role
d)
A physical system or a hardware device with its interfaces
61.
What is the name of the object in the following figure?
a)

ActionListener

b)

actionPerformed

c)

ActionEvent

d)

It's all wrong

62.
During what stage of the RUP software development process do we build the system through a multi-loop process?
a)
Initialization (Inception)
b)
Elaboration
c)
Construction
d)
Transition
63.
In a Sequence Diagram, the X represents ?
a)
Message
b)
Condition
c)
Iteration
d)
Delete object
64.
Which diagram is the most useful information in analyzing software behavior?
a)
Sequence Diagram
b)
Class Diagram
c)
Deployment Diagram
d)
Component Diagram
65.
During what stage of the RUP process to determine the cost and duration, identify the risks and the system environment?
a)
Inception
b)
Elaboration
c)
Construction
d)
Transition
66.
Good reasons to group classes into the same package are that classes:
a)
Relating to each other by specialization
b)
They are related to each other by aggregation.
c)
Semantically related and prone to change together
d)
Built by the same team of developers
67.
MessageA sent?
a)

10 times at once

b)

10 times in turn

c)

Together with the parameter i

d)

It's all wrong

68.
What is the purpose of the Activity Diagram?
a)
Represent behavior with control structure, represent many objects in use case
b)
Static representation of concepts, types, and classes
c)
Helps to understand the basic purpose of the class
d)
Representation of the layout of components on hardware nodes
69.
In a Sequence Diagram, the notation [some_text] represents ?
a)
Message
b)
Condition
c)
Iteration
d)
Delete object
70.
Are messageB and messageC messages sent?
a)

At the same time

b)

Sequential

c)

By group

d)

It's all wrong

71.
During the Construction phase of the RUP process, each iteration will include
a)
Analysis, design, coding, testing, integration
b)
Design, coding, testing, integration
c)
Analysis, design, coding, testing
d)
Design, coding
72.
What does the "includes" relationship mean?
a)
Like a subroutine, it is a use case used by another use case
b)
The role played by a person when interacts with the system
c)
Highlight a collection of objects that work together to perform a use case
d)
Helps define the system scope by identifying the roles of actors interact the system
73.
An "is a" relationship is the best description for:
a)
Encapsulation
b)
Composition
c)
Aggregation
d)
Inheritance
74.
Which of the following is an NOT valid multiplicity?
a)
0.4
b)
1
c)
3..*
d)
i..j
75.
Which statement is true about Component Diagrams?
a)
A component can have more than one interface
b)
A component cannot have more than one interface (2)
c)
A component represents several types of hardware units (3)
d)
Both (1) and (3) are correct
76.
What type of diagram is commonly used to capture the flow of control associated with a use case?
a)
Interaction
b)
Sequence
c)
Use cases
d)
Activity
77.
An actor may involve:
a)
Only 1 use case
b)
0 or more use cases
c)
1 or more use cases
d)
All are correct
78.
Which relationship to indicate optional behavior, only runs under certain conditions?
a)
Include
b)
Aggregation
c)
Extend
d)
Association
79.
In a use case diagram, the external entities of the system are called
a)
Use cases
b)
Boundary objects
c)
Actors
d)
Stick men
80.
Which of the following statements is TRUE about state diagrams?
a)
describe all the states that an object can have and the transitions of states as a result of events.
b)
describes the behavior of multiple objects in the same Use Case
c)
describe the types of objects in the system and the different types of relationships between them
d)
showing the many components in the system and their dependencies
81.
To organize elements into groups, we use:
a)
Package
b)
Class
c)
Class and Interface
d)
Components
82.
In the following figure, what type is the class "Category"?
a)

Interface

b)

Abstract

c)

Link

d)

Association

83.
For the following diagram, which statement is true?
a)

A uses B, required

b)

A uses B, optional

c)

B uses A, required

d)

B uses A, optional

84.
Which diagrams show the dynamic aspect of the system?
a)
use case, class, object, component, deployment
b)
class, object, component, deployment
c)
sequence, use case, class, statechart, activity
d)
sequence, collaboration, statechart, activity
85.
UML stands for:
a)
Unified Module Language
b)
Unified Modeling Language
c)
Universal Module Leveling
d)
Universal Module Language
86.
Which statement is true about the figure below?
a)

Foobar is Barfoo's son

b)

Barfoo is the son of Foobar

c)

Foobar realizes Barfoo

d)

Barfoo Realizes Foobar

87.
How many different messages does the participant1 object send to the participant2 object?
a)

2

b)

3

c)

4

d)

13

88.
The relationship between class 12 and class 13 is:
a)

Dependency

b)

Aggregation

c)

Composition

d)

Realization

89.
What is "A"?
a)

1 state

b)

1 message

c)

1 event

d)

1 state transition

90.
The lifeline of an object is shown in the diagram:
a)
Object Diagram
b)
State Diagram
c)
Sequence Diagram
d)
Deployment Diagram