You are on page 1of 6

Question: How is UML used in object-oriented analysis and design?

Answer: To model the system architecture and design of an application.

Question: How does encapsulation happen?

Answer: By hiding an object's internal details and only exposing relevant information and
behavior.

Question: What is polymorphism in OOP?

Answer: The process of creating multiple objects from a single class

Question: How does polymorphism work in object-oriented programming?

Answer: By assigning multiple behaviors to objects

Question: What are some recent programming languages that implement object-oriented
programming?

Answer: Python, Java and Ruby

Question: What is the difference between object-oriented analysis and design and
object-oriented programming?

Answer: Object-oriented analysis and design focuses on analysis while object-oriented


programming focuses on coding.

Question: What does UML stand for?

Answer: Universal Modeling Language

Question: Why is object-oriented analysis and design important for software


development?

Answer: To model and understand the software system being developed

Question: The difference between objects and classes in OOP is

Answer: Objects are instances of classes.

Question: Why is abstraction important in OOP?

Answer: It simplifies the design of software systems

Question: Which of the following is an example of abstraction in OOP?

Answer: A student object with name, age, and grade properties.


Question: Which of the following best defines polymorphism in OOP?

Answer: The ability of an object to take on multiple forms or have multiple behaviors

Question: What is the purpose of attributes in a class diagram?

Answer: To describe the properties of a class.

Question: Which of the following is NOT a key element of a domain model in


object-oriented analysis and design?

Answer: User interface

Question: What is the purpose of a multiplicity in a class diagram?

Answer: To show the number of instances of a class that can be related to an instance of
another class.

Question: Which of the following is true about associations in a domain model?

Answer: Associations describe a relationship between instances of classes.

Question: What is the purpose of methods in a class diagram?

Answer: To describe the behavior of a class.

Question: What is a class diagram in object-oriented analysis and design?

Answer: A diagram that shows the relationships between different classes in a system.

Question: What is the purpose of the class diagram in a domain model?

Answer: To describe the data and the relationships between classes.

Question: Hiding implementation details of an object, allowing access only to its behavior.

Answer: Encapsulation

Question: An instance of a class, holding specific values for its attributes.

Answer: Object

Question: Creating new classes based on existing ones, inheriting attributes and
methods.

Answer: Inheritance

Question: A blueprint for creating objects, defining their attributes and methods.

Answer: Class
Question: A blueprint-like representation of a software system's essential building blocks,
focusing on concepts and relationships

Answer: Multiplicity

Question: A meaningful connection between different conceptual classes in a domain


model.

Answer: Association

Question: A distinct concept representing a real-world entity in a domain model.

Answer: Domain Model

Question: The number of instances of one class that can be associated with a single
instance of another class.

Answer: Class Diagram

Question: What is a sequence diagram?

Answer: A type of interaction diagram

Question: The lateral bar in sequence diagram represents

Answer: The focus of control when an object is busy doing things

Question: What are the objects represented as in a sequence diagram

Answer: Rectangles with their names inside

Question: How are messages between objects represented in a sequence diagram

Answer: As arrows with the name of the message and any arguments passed

Question: An object diagram shows a/an ____ at a given point in the time.

Answer: Instance

Question: Return messages in sequence diagram can be detected when

Answer: an arrow with dashline which has a noun description/messages

Question: What do you use to represent if-else statement in a sequence diagram?

Answer: Alternative

Question: Solid arrow in sequence diagram represents

Answer: Synchronous messages


Question: What primarily distinguishes a domain model from an object diagram?

Answer: Domain models represent real-world concepts, whereas object diagrams depict
actual object instances.

Question: Which of the following best describes the relationship between a domain
model, a class diagram, and an object diagram?

Answer: The domain model defines the entities and relationships, the class diagram
structures them based on software principles, and the object diagram shows specific
interactions between instances.

Question: What is the difference between a class diagram and an object diagram?

Answer: A class diagram shows the relationships between classes in a system, while an
object diagram shows the state of objects.

Question: Defining what features will and will not be included in the system.

Answer: Scope Definition

Question: An external entity that interacts with the system.

Answer: Actor

Question: Using a diagram as a reference point in a legal agreement.

Answer: Contractual Agreement

Question: A specific task or function the system performs for an actor.

Answer: Use-case

Question:

Answer:

Question:

Answer:

Question:

Answer:

Question:

Answer:

Question:
Answer:

Question:

Answer:

Question:

Answer:

Question:

Answer:

Question:

Answer:

Question:

Answer:

Question:

Answer:

Question:

Answer:

Question:

Answer:

Question:

Answer:

Question:

Answer:

Question:

Answer:

Question:

Answer:

Question:
Answer:

You might also like