Font size
S
M
L
XL
WorksheetsSAAD 5
Total questions: 89
Worksheet time: 45mins
Name
Class
Date
1.
Which statement best matches how program execution is described in the object-oriented approach?
a)
Objects interact by spreading control via method calls between objects
b)
A single main routine centrally controls all computation steps
c)
Programs run by rewriting data structures without object interaction
d)
Execution is primarily a sequence of database transactions
e)
Control flow is defined only by compile-time inheritance hierarchies
2.
In object-oriented analysis and design, how is system behavior expressed according to the slides?
a)
As a series of interactions where objects send messages to each other
b)
As a set of isolated functions with no shared state
c)
As a single global state machine with no objects
d)
As a static schema describing only data storage constraints
e)
As a purely procedural algorithm independent of entities
3.
When defining and representing objects and classes, which item is explicitly categorized as a relationship type?
a)
Generalization
b)
Initial value
c)
Parameter list
d)
Return type
e)
Property string
4.
The slides list several elements for defining objects and classes. Which grouping most closely matches that list?
a)
Attributes, operations, and relationships (including dependencies, generalizations, and associations)
b)
Loops, conditionals, and recursion patterns
c)
Tables, indexes, and foreign keys only
d)
Threads, locks, and scheduling policies
e)
Packets, routers, and routing protocols
5.
An object is defined as an abstract representation of an entity with clear identity and boundaries. What is the stated purpose of this representation?
a)
To simulate or control the entity
b)
To compress the entity into a smaller file format
c)
To remove all behavior and keep only raw data
d)
To guarantee the entity is immutable over time
e)
To replace real-world entities with random identifiers
6.
According to the slides, what best represents the state of an object at a particular point in time?
a)
A set of properties, each with a value at that time
b)
Only the list of methods the object can execute
c)
The set of other objects that reference it
d)
The source code line numbers where it is used
e)
A package name that contains the class
7.
Two objects have identical properties and identical operations. Under the slide definition, what still distinguishes them as different objects?
a)
Their identity
b)
Their visibility symbol
c)
Their return type
d)
Their multiplicity
e)
Their property string
8.
Which description best matches the slides definition of a class?
a)
A description of a set of objects sharing attributes, operations, relationships, constraints, and semantics
b)
A single object with fixed property values
c)
A message exchanged between two objects
d)
A diagram showing only runtime object instances
e)
A method body that implements an operation
9.
The slides state that a class is a type. What is each object in that class called?
a)
An instance
b)
A dependency
c)
A role
d)
A qualifier
e)
A package
10.
Which notation best matches the slides object representation format?
a)
order1:Order status=unpaid
b)
Order::order1(status=unpaid)
c)
Order(order1){status->unpaid}
d)
status=unpaid : order1
e)
order1-status-unpaid
11.
A class representation is distinct from an object representation in the slides. Which statement captures the key difference?
a)
A class shows attributes and methods generically, while an object shows specific attribute values for an instance
b)
A class always includes multiplicities, while an object never includes them
c)
An object can be instantiated without any class description
d)
A class is only used for databases, while objects are only used for networks
e)
Objects cannot have identity, while classes always have identity
12.
Which statement best matches the slides definition of an attribute?
a)
A named property of a class that takes on a value for each object at each point in time
b)
A service an object can provide when requested by another object
c)
A dashed arrow indicating one class is affected by another
d)
A set of object instances shown instead of classes
e)
A message that spreads control between objects
13.
Which attribute string best follows the stated attribute syntax order: visibility, optional derived marker, name, type, multiplicity, initial value, property string?
a)
+ status: Status [0..1] = unpaid {unpaid, paid}
b)
+ Status: status {unpaid, paid} = unpaid [0..1]
c)
status + : Status = unpaid {unpaid, paid} [0..1]
d)
+ status [0..1] Status = unpaid {unpaid, paid}
e)
+ = unpaid status: Status [0..1] {unpaid, paid}
14.
Which visibility symbol denotes package visibility (accessible from members of the same narrowest package)?
a)
~
b)
#
c)
-
d)
+
e)
*
15.
A class defines an attribute with protected visibility. Under the slides definition, who can access that attribute?
a)
Only classes that inherit from the current class
b)
Any other class in the system
c)
Only members of the same narrowest package
d)
No other class besides the defining class
e)
Only objects connected by an association
16.
Which mapping of visibility symbols to meanings is consistent with the slides?
a)
'-' private, '#' protected, '~' package, '+' public
b)
'+' private, '-' protected, '#' package, '~' public
c)
'#' private, '~' protected, '-' package, '+' public
d)
'~' private, '+' protected, '-' package, '#' public
e)
'-' public, '+' private, '#' package, '~' protected
17.
The slides distinguish fundamental and structured attribute types. Which option is presented as a structured type example?
a)
Point
b)
Boolean
c)
Integer
d)
Real
e)
void
18.
In the slides, what does a multiplicity of 0..1 on an attribute indicate?
a)
The attribute is optional and can have no value or one value
b)
The attribute must have at least one value and may have many
c)
The attribute can only take values between 0 and 1 inclusive
d)
The attribute is derived from other attributes
e)
The attribute is visible only within the same package
19.
In the example 'status: Status = unpaid {unpaid, paid}', what is the role of '{unpaid, paid}'?
a)
It is a property string specifying allowed values (typically for an enumeration)
b)
It indicates the attribute is derived
c)
It denotes protected visibility
d)
It specifies a return type for an operation
e)
It marks a dependency arrow in UML
20.
When is an initial value applied to an attribute according to the slides?
a)
When an object is instantiated from the class
b)
Only after the first method call on the object
c)
Only when a subclass overrides the attribute
d)
When a dependency arrow is added to the class
e)
When an association end is navigated
21.
How should a class-scoped attribute be indicated in the slides (i.e., reflecting class-wide characteristics rather than per-object characteristics)?
a)
Underline the attribute
b)
Prefix the attribute name with a slash
c)
Italicize the attribute type
d)
Add a dashed arrow to the attribute
e)
Place the attribute inside a small diamond
22.
Which notation indicates a derived property (computed from other properties), such as age when date of birth is available?
a)
Prefix the property name with a slash
b)
Underline the property name
c)
Prefix the property name with a plus sign
d)
Enclose the property name in braces
e)
Attach a hollow diamond to the property
23.
In the slides, what is an operation?
a)
A service an object can provide when requested via a message
b)
A fixed value assigned to an attribute at instantiation
c)
A multiplicity marker on an association end
d)
A dashed arrow that indicates dependency
e)
A subset of objects at an association end (a role)
24.
Which operation string best follows the stated operation syntax: visibility, name, parameter list, return type, property string?
a)
+ sumMoney(): double {postcondition}
b)
sumMoney + : double() {postcondition}
c)
+ double sumMoney {postcondition} ()
d)
+ {postcondition} sumMoney: double()
e)
+ sumMoney: double() postcondition
25.
In the slides operation parameter directions, which direction indicates a parameter adjustable to give information to the caller?
a)
out
b)
in
c)
inout
d)
return
e)
private
26.
According to the slides, when is a default value used for a parameter?
a)
When the corresponding parameter is missing in the call
b)
Only when the caller provides a null value explicitly
c)
Only when the method has no return type
d)
Only when the class is abstract
e)
When the attribute is marked as derived
27.
After introducing attributes and operations, the deck next shifts focus to which topic?
a)
Relationships between classes
b)
Database indexing strategies
c)
Network routing protocols
d)
Compiler optimization passes
e)
Memory allocation algorithms
28.
Which relationship type is explicitly listed as one of the relationships between classes?
a)
Dependency relationship
b)
Normalization relationship
c)
Encryption relationship
d)
Serialization relationship
e)
Compression relationship
29.
The slides enumerate multiple relationships between classes. Which pair is listed as specialized forms related to whole-part modeling?
a)
Aggregation and composition
b)
Generalization and dependency
c)
Attributes and operations
d)
Visibility and multiplicity
e)
Parameters and return values
30.
Which statement best matches the slides description of generalization?
a)
Extracting common features from many classes to form a simpler superclass
b)
Adding new features to a class to form a more specific superclass
c)
Connecting two classes so that objects know each other at runtime
d)
Using one class as a method parameter in another class
e)
Reducing search space in an association using qualifiers
31.
A class has many parent classes. What term is used for this in the slides?
a)
Multiple inheritance class
b)
Simple inheritance class
c)
Base class
d)
Association class
e)
Derived property
32.
The slides connect polymorphism to which capability of a child class?
a)
Redefining (overwriting) an operation of the parent class
b)
Hiding all attributes of the parent class from subclasses
c)
Replacing associations with dependencies at runtime
d)
Preventing any object instances from being created
e)
Restricting navigation on a link to one direction
33.
According to the slides, inheritance means a child class has which items described in a parent class?
a)
Properties, operations, and associations
b)
Only method bodies but not properties
c)
Only attributes but not associations
d)
Only relationships but not operations
e)
Only package visibility and no other elements
34.
Under the slides definition, which property is required for a class to be considered abstract?
a)
It has no individual objects (no instances) and is used to describe common characteristics of subclasses
b)
It has only public attributes and no private attributes
c)
It cannot participate in any associations
d)
It must have exactly one parent class
e)
It must contain only derived properties
35.
What must subclasses do with an abstract operation as described in the slides?
a)
Redefine and implement it concretely while keeping the operation name
b)
Delete the operation from the subclass to avoid duplication
c)
Convert the operation into an attribute with an initial value
d)
Replace the operation with a dependency arrow
e)
Restrict navigation so the operation cannot be called
36.
How should an abstract class name and an abstract operation title be presented in UML according to the slides?
a)
Italicized, optionally accompanied by the property string {abstract}
b)
Underlined, optionally accompanied by the property string {static}
c)
Surrounded by brackets, optionally accompanied by multiplicity 0..*
d)
Prefixed by a plus sign, optionally accompanied by a role name
e)
Shown with a dashed arrow, optionally accompanied by a qualifier
37.
In the provided example classes (CPicture, CQuadrilateral, CTriangle, CEllipse), which set of operations appears across the shape-like subclasses?
a)
area(), perimeter(), draw()
b)
start(), stop(), reset()
c)
insert(), update(), delete()
d)
encode(), decode(), hash()
e)
connect(), send(), receive()
38.
In the same example, attributes such as P1, P2, P3, and P4 are shown with a specific visibility symbol. Which symbol is used?
a)
#
b)
+
c)
-
d)
~
e)
/
39.
In the slides, which direction does the UML dashed arrow indicate in a dependency relationship?
a)
From the dependent class to the independent class
b)
From the independent class to the dependent class
c)
From subclass to superclass only
d)
From whole to part only
e)
From role name to class name
40.
A dependency relationship is defined as one class being affected by changes in another. Which class is affected?
a)
The dependent party
b)
The independent party
c)
Both parties equally and always symmetrically
d)
Neither party; dependency is purely decorative
e)
Only association classes
41.
Class A references class B by having a parameter of type B in one of A's methods. Which dependency case from the slides does this correspond to?
a)
Parameter
b)
Global
c)
Local
d)
Generalization
e)
Aggregation
42.
Class A references class B by creating an object of B as a local variable inside a method of A. Which dependency case from the slides is this?
a)
Local
b)
Global
c)
Parameter
d)
Association end role
e)
Composition ownership
43.
According to the slides, what is a link (connection)?
a)
A relationship in reality between individuals (objects) of two classes
b)
A relationship between two classes defined as a type hierarchy
c)
A dashed arrow showing compile-time dependency only
d)
A property string restricting enumeration values
e)
A set of operations shared by multiple classes
44.
The slides define an association as a relationship between two classes. How is it related to links?
a)
An association includes a set of links of the same type between individuals of the two classes
b)
A link includes a set of associations that share a superclass
c)
Associations exist only between objects, not classes
d)
Links exist only between classes, not objects
e)
Associations are the same as dependencies and are drawn with dashed arrows
45.
The slides state that if a link exists between two objects, those objects "know each other". What does this enable?
a)
From one object, you can find the other object via the connection
b)
Both objects automatically share all attribute values
c)
Both objects must be instances of the same class
d)
The objects become abstract and cannot be instantiated
e)
The objects can only be accessed within the same package
46.
When navigation is restricted to one direction on a link, how do the slides describe representing this restriction?
a)
Add an arrow at the navigable end and a cross at the non-navigable end
b)
Underline the association name and italicize both class names
c)
Replace the association with a generalization triangle
d)
Use braces to list allowed role names at both ends
e)
Place a qualifier box on both ends with identical keys
47.
In an association, each class can play a role. What naming convention for role names is stated in the slides?
a)
The first letter of the role name is lowercase
b)
Role names must be all uppercase
c)
Role names must be the same as the class name
d)
Role names must start with a plus sign
e)
Role names must be written inside diamonds
48.
In terms of meaning, what does a role represent in the slides?
a)
A subset of objects of the corresponding class at that association end
b)
A derived attribute computed from other properties
c)
A visibility scope equal to package access
d)
An abstract operation with no implementation
e)
A dashed arrow indicating dependency
49.
In the slides, which multiplicity value means "one and only one"?
a)
1
b)
0..1
c)
1..*
d)
0..*
e)
m..n
50.
A multiplicity of 1..* is used at an association end. What does it indicate according to the slides?
a)
From 1 to many associated individuals
b)
Exactly one associated individual
c)
From 0 to 1 associated individuals
d)
From 0 to many associated individuals
e)
From m to n only when m and n are zero
51.
Which multiplicity notation indicates "from 0 to many" as listed in the slides?
a)
0..*
b)
1
c)
0..1
d)
1..*
e)
m..n
52.
The slides describe qualifiers as addressing a recurring modeling challenge in relationships. What is that challenge?
a)
The search problem: given an object at one end, find the connected object(s) at the other end
b)
Enforcing polymorphism when overriding methods
c)
Choosing visibility symbols for protected attributes
d)
Selecting a return type for an operation
e)
Determining whether a class is abstract
53.
According to the slides, qualifiers are applied to which kinds of relationships to reduce the search results?
a)
One-to-many or many-to-many relationships
b)
Only one-to-one relationships
c)
Only generalization relationships
d)
Only dependency relationships
e)
Only composition relationships
54.
Where is a qualifier property written in UML according to the slides?
a)
In a small box attached to the end where navigation originates
b)
Inside the class box under the operations section
c)
As an italicized association name in the middle of the link
d)
As an underlined attribute inside the whole class
e)
As a dashed arrow from the independent party to the dependent party
55.
When do the slides suggest using an association class?
a)
When the association itself needs properties specific to it
b)
When a class has multiple parent classes
c)
When an attribute is derived and needs a slash prefix
d)
When navigation is restricted to one direction
e)
When a parameter has a default value
56.
How is an association class represented in UML in the slides?
a)
As a normal class attached to the association by a dashed line
b)
As a hollow diamond attached to the part end
c)
As a generalization triangle pointing to the association name
d)
As a qualifier box on both ends of the association
e)
As an underlined operation name inside each class
57.
The slides describe multipartite associations. What distinguishes them from standard associations?
a)
They can involve more than two classes, forming an n-tuple connection
b)
They always imply inheritance between all participating classes
c)
They are only used to represent visibility scopes
d)
They must have exactly one qualifier at each end
e)
They can only be used for one-to-one relationships
58.
How does UML represent a multipartite association in the slides?
a)
With a small diamond connected by solid lines to the participating classes
b)
With a dashed arrow from dependent to independent
c)
With an italicized class name and underlined attributes
d)
With braces listing allowed enumeration values
e)
With a cross at both ends to forbid navigation
59.
According to the slides, what is the key modeling intent of aggregation?
a)
To emphasize a whole-part relationship while parts may still be considered independent
b)
To enforce that parts cannot exist without the whole
c)
To express that one class is affected by changes in another
d)
To restrict navigation on a link to one direction
e)
To indicate a class has no instances
60.
In UML, how is aggregation represented according to the slides?
a)
A hollow diamond at the whole side of the association
b)
A solid diamond at the part side of the association
c)
A dashed arrow from independent to dependent
d)
An italicized association end role name
e)
An underlined multiplicity at both ends
61.
Which statement best matches the slides definition of composition?
a)
A strong whole-part ownership where a part belongs to only one whole and cannot exist independently
b)
A loose whole-part relation where both can live without each other
c)
A relationship where a class is affected by changes in another class
d)
A relationship between more than two classes represented by a small diamond
e)
A relationship used only for restricting search results using qualifiers
62.
What lifecycle rule for composition is stated in the slides?
a)
When the whole is destroyed, the part is also destroyed
b)
When the part is destroyed, the whole is automatically destroyed
c)
The whole and part must be created by different subsystems
d)
The part may belong to many wholes simultaneously
e)
Destruction has no effect; composition is purely notational
63.
In OOP terms in the slides, what does an association correspond to?
a)
A has-a C object as a member variable
b)
A references B only as a method parameter or return type
c)
A child class overwriting a parent operation
d)
A class having no instances
e)
A qualifier reducing many-to-many to 0..1
64.
ClassA uses ClassB only as a method parameter or return type. In the slides OOP terms, this is best described as which relationship?
a)
Dependency
b)
Association
c)
Aggregation
d)
Composition
e)
Generalization
65.
The aggregation slide notes that parts might live without each other. Which scenario aligns best with aggregation as described?
a)
A PlayList holds a list of Song objects that may exist independently of the PlayList
b)
A Room object cannot exist without its Apartment and is deleted when the Apartment is deleted
c)
A subclass must implement an abstract method from its superclass
d)
A class is affected by changes in another through a dashed-arrow dependency
e)
A qualifier box reduces many-to-many associations to smaller results
66.
The slide shows nested circles indicating a containment relationship among association, aggregation, and composition. Which relationship is shown as the most general (outermost)?
a)
Association
b)
Aggregation
c)
Composition
d)
Dependency
e)
Generalization
67.
The composition slide states that when an Apartment is deleted, its associated Rooms are deleted as well. Which modeling choice does this describe?
a)
Composition with ownership and lifecycle dependency
b)
Aggregation where parts can live without the whole
c)
A dependency relationship from Room to Apartment
d)
A generalization where Room is a superclass of Apartment
e)
A qualifier that reduces the search results from many to one
68.
In the composition code example, the Apartment constructor creates a new Room. Which responsibility is being illustrated?
a)
The whole is responsible for creation of the part
b)
The part is responsible for creation of the whole
c)
Only independent parties can create dependent parties
d)
Qualifiers are required to instantiate objects
e)
Polymorphism requires constructors to be abstract
69.
According to the slides, what does a class diagram primarily model?
a)
The static structure: a set of classes and possible relationships between them
b)
Only runtime message ordering between objects
c)
Only enumeration value constraints for attributes
d)
Only the performance profile across project phases
e)
Only a single instance snapshot of object values
70.
How does an object diagram relate to a class diagram according to the slides?
a)
It represents the class diagram structure concretely using objects and connections
b)
It replaces all methods with dependency arrows and removes attributes
c)
It lists only packages and visibility symbols without classes
d)
It is used only to define multiplicities and qualifiers
e)
It is identical to a class diagram but with italicized class names
71.
In the example class diagram, Payment is labeled as an abstract class. What does this imply according to the slides?
a)
Payment has no direct instances and is used to capture common characteristics of its subclasses
b)
Payment must be a concrete class with at least one object instance
c)
Payment can only participate in dependency relationships, not associations
d)
Payment must be underlined to indicate class scope
e)
Payment must restrict navigation using qualifier boxes
72.
In the example, the association between Customer and Order shows multiplicity 1 at the Customer end and 0..* at the Order end. Which interpretation is consistent with that notation?
a)
Each Order is linked to exactly one Customer, while a Customer may be linked to zero or many Orders
b)
Each Customer is linked to exactly one Order, while an Order may be linked to zero or many Customers
c)
Each Customer must have at least one Order, and each Order must have at least one Customer
d)
Customer and Order are in a generalization relationship, not an association
e)
The multiplicities indicate visibility rather than cardinality
73.
In the example (2) class diagram, which element is clearly an operation (not an attribute)?
a)
sumMoney(): double
b)
receiptID: int
c)
status: string
d)
taxRate: double
e)
productName: string
74.
In the same example, PaymentMethod shows "#amount: double". What does the # symbol indicate in the slides?
a)
Protected visibility (accessible from inheriting classes)
b)
Private visibility (not accessible from any other class)
c)
Public visibility (accessible from any other class)
d)
Package visibility (accessible from the same package only)
e)
Derived property (computed from other properties)
75.
The slides show a process flow: Business Modeling, Determine requirements, Analysis and Design, Implementation, Testing, Deploy. Which activity comes immediately after Analysis and Design?
a)
Implementation
b)
Determine requirements
c)
Business Modeling
d)
Deploy
e)
Testing
76.
Based on the same flow, which step directly precedes Analysis and Design?
a)
Determine requirements
b)
Business Modeling
c)
Implementation
d)
Testing
e)
Deploy
77.
In the RUP phases shown on the slide, what is the correct left-to-right order?
a)
Inception, Elaboration, Construction, Transition
b)
Elaboration, Inception, Transition, Construction
c)
Construction, Transition, Inception, Elaboration
d)
Inception, Construction, Elaboration, Transition
e)
Transition, Construction, Elaboration, Inception
78.
The chart lists several disciplines (e.g., Business Modeling, Requirements, Analysis & Design). Which discipline name is explicitly shown as one of the lines?
a)
Configuration & Change Mgmt
b)
Database Normalization
c)
Marketing Strategy
d)
Customer Support
e)
Hardware Procurement
79.
The slides describe Analysis and Design as transforming one primary input artifact into one primary output artifact. Which pairing matches the slide?
a)
Requirements specification document -> Design documents
b)
Design documents -> Requirements specification document
c)
Implementation code -> Test cases
d)
Deployment scripts -> Business model
e)
Project plan -> Class attributes
80.
Which item is listed under the design documents outputs in the slides?
a)
State Machine Diagram
b)
Publication year
c)
Hardware bill of materials
d)
Version control commit hash
e)
Exam grading rubric
81.
According to the slides, which focus is associated with Analysis (not Design)?
a)
Understanding the problem and capturing behavior and system structure to meet functional requirements
b)
Ensuring performance and meeting non-functional requirements via large scale models
c)
Defining object lifecycle and optimization constraints for deployment
d)
Producing interface design as the sole deliverable
e)
Implementing methods and writing test scripts
82.
According to the slides, which focus is associated with Design (not Analysis)?
a)
Understanding the solution, defining operations and properties, and defining object lifecycle
b)
Capturing behavior to meet functional requirements via small scale models
c)
Extracting common features to form a superclass
d)
Reducing search results using qualifiers on associations
e)
Representing object instances with attribute values
83.
The slides describe analysis and design as use case driven. Which option best reflects that emphasis?
a)
Use cases guide both analysis classes and design classes/subsystems
b)
Class diagrams are built first and use cases are derived later
c)
Only database tables drive design documents
d)
Only implementation code determines the analysis model
e)
Testing results are the primary driver of requirements
84.
In the RUP-oriented view shown, which pair of perspectives is contrasted when moving between analysis and design?
a)
Bottom up and top down
b)
Public and private
c)
Aggregation and composition
d)
Attributes and operations
e)
Qualifiers and role names
85.
In the listed activities, which item is explicitly labeled as optional?
a)
Database Design
b)
Architecture synthesis
c)
Use case behavior analysis
d)
Architecture refinement
e)
Detailed design
86.
Which ordering is most consistent with the progression shown in the slides (from earlier to later activities)?
a)
Define the architectural framework -> Architecture synthesis -> Architecture refinement -> Detailed design
b)
Detailed design -> Architecture refinement -> Architecture synthesis -> Define the architectural framework
c)
Use case behavior analysis -> Database Design -> Define the architectural framework -> Architecture synthesis
d)
Architecture refinement -> Define the architectural framework -> Detailed design -> Use case behavior analysis
e)
Database Design -> Detailed design -> Architecture synthesis -> Architecture refinement
87.
The slide shows multiple modeling artifacts associated with analysis and design. Which artifact is explicitly named in that list?
a)
Communication Diagram
b)
Entity Relationship Diagram
c)
Gantt Chart
d)
Network Topology Diagram
e)
Code Coverage Report
88.
The same slide places Use Case Model and Design Model in relation. Which statement aligns best with that framing?
a)
Use case models relate to design models through diagrams such as class and interaction/sequence artifacts
b)
Design models are produced only after deployment and do not relate to use cases
c)
Use case models replace the need for any class or interaction diagrams
d)
Class diagrams are listed only under requirements, not design
e)
Communication diagrams are treated as implementation code
89.
In the iteration diagram, which pattern best matches how work is organized?
a)
Implementing use cases scenario-by-scenario across iterations
b)
Finishing all deployment tasks before any requirements work begins
c)
Modeling only class diagrams and skipping implementation entirely
d)
Applying qualifiers to reduce search results before defining use cases
e)
Defining visibility symbols only after database design is complete
Reset
