Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Which UML diagram is used to model the static structure of a system from a deployment perspective, showing nodes and their relationships? Question 1 5
Which UML diagram is used to model the static structure of a system from a deployment perspective, showing nodes and their relationships?
Question Answer
a
Class diagram
b
Object diagram
c
Deployment diagram
d
Package diagram
Question
Not yet answered
Marked out of
Flag question
Question text
What does a transition in a state diagram represent?
Question Answer
a
A method call between objects
b
A relationship between classes
c
A message exchange between actors
d
A change in the internal state of an object
Question
Not yet answered
Marked out of
Flag question
Question text
In a state diagram, what does a filled circle with an arrow pointing to a state represent?
Question Answer
a
A final state
b
An initial state
c
A transition
d
A decision point
Question
Not yet answered
Marked out of
Flag question
Question text
Which of the following statements about classes and objects is correct?
Question Answer
a
Classes are instances of objects.
b
Classes are defined by objects.
c
Objects are defined by classes.
d
Objects are instances of classes.
Question
Not yet answered
Marked out of
Flag question
Question text
What is the primary advantage of encapsulation in OOP?
Question Answer
a
It ensures that objects can only be accessed through predefined methods
b
It simplifies the design of complex systems
c
It improves the performance of the software
d
It allows for code reusability
Question
Not yet answered
Marked out of
Flag question
Question text
What is the primary purpose of a use case diagram in UML?
Question Answer
a
To model the behavior of a single class
b
To illustrate the interactions between objects
c
To describe the functional requirements of a system
d
To depict the dynamic aspects of a system's functionality
Question
Not yet answered
Marked out of
Flag question
Question text
Which UML diagram is used to represent how objects collaborate to achieve a specific goal or functionality in a system?
Question Answer
a
Collaboration diagram
b
State diagram
c
Use case diagram
d
Sequence diagram
Question
Not yet answered
Marked out of
Flag question
Question text
In a class diagram, what does an association line with an arrow indicate?
Question Answer
a
Generalization
b
Aggregation
c
Composition
d
Dependency
Question
Not yet answered
Marked out of
Flag question
Question text
What is 'abstraction' in the context of OOP?
Question Answer
a
The process of creating multiple instances of a class
b
The process of hiding the internal details of an object's behavior
c
The ability to inherit properties and methods from another class
d
The process of allowing objects to take on many forms
Question
Not yet answered
Marked out of
Flag question
Question text
In a sequence diagram, what do vertical lines represent?
Question Answer
a
Objects
b
Constraints
c
States of an object
d
Messages between objects
Question
Not yet answered
Marked out of
Flag question
Question text
Which OOAD diagram is used to model the dynamic behavior of a system over time?
Question Answer
a
Class diagram
b
Use case diagram
c
State diagram
d
Sequence diagram
Question
Not yet answered
Marked out of
Flag question
Question text
In a sequence diagram, what do lifelines represent?
Question Answer
a
The sequence of method calls within a class
b
Objects
c
Messages exchanged between objects
d
States of an object during its lifetime
Question
Not yet answered
Marked out of
Flag question
Question text
Which OOAD diagram is used to show the interactions between objects and their messages?
Question Answer
a
State diagram
b
Class diagram
c
Use case diagram
d
Sequence diagram
Question
Not yet answered
Marked out of
Flag question
Question text
In a class diagram, what does a dashed line with a hollow diamond at one end indicate?
Question Answer
a
Generalization
b
Dependency
c
Aggregation
d
Composition
Question
Not yet answered
Marked out of
Flag question
Question text
What is the purpose of a communication diagram in UML?
Question Answer
a
To model the behavior of a single class
b
To illustrate the interactions between objects
c
To show the flow of activities within a system
d
To depict the dynamic aspects of a system's functionality
Question
Not yet answered
Marked out of
Flag question
Question text
What is 'inheritance' in objectoriented programming OOP
Question Answer
a
The process of creating multiple instances of an object
b
The ability of a subclass to inherit attributes and methods from its superclass
c
The process of creating new instances of classes
d
The process of hiding the complexity of a class
Question
Not yet answered
Marked out of
Flag question
Question text
Which OOAD diagram is used to show the static structure of a system, including classes, attributes, and relationships?
Question Answer
a
Class diagram
b
Use case diagram
c
Sequence diagram
d
Activity diagram
Question
Not yet answered
Marked out of
Flag question
Question text
Which UML diagram is used to show the structure of a system, including classes, attributes, methods, and relationships?
Question Answer
a
Use case diagram
b
Class diagram
c
Sequence diagram
d
State diagram
Question
Not yet answered
Marked out of
Flag question
Question text
In OOAD, what does the term 'aggregation' represent?
Question Answer
a
A form of inheritance where a subclass extends a superclass
b
A specialized form of association where one class is part of another class
c
A relationship between classes where objects can belong to multiple classes
d
A relationship between classes where one class is dependent on another class
Question
Not yet answered
Marked out of
Flag question
Question text
In an activity diagram, what does a diamond shape represent?
Question Answer
a
A decision point
b
An activity
c
An object node
d
A synchronization bar
Question
Not yet answered
Marked out of
Flag question
Question text
Which UML diagram is used to show the timing constraints of messages in a system?
Question Answer
a
Communication diagram
b
State diagram
c
Timing diagram
d
Sequence diagram
Question
Not yet answered
Marked out of
Flag question
Question text
In a use case diagram, what does an actor represent?
Question Answer
a
A state of an object
b
A specific instance of a class
c
An external entity that interacts with the system
d
A sequence of actions within a system
Question
Not yet answered
Marked out of
Flag question
Question text
Which UML diagram is used to depict the dynamic behavior of a system, focusing on the states of objects and transitions between states?
Question Answer
a
State diagram
b
Sequence diagram
c
Activity diagram
d
Class diagram
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started