Professional Documents
Culture Documents
Question Bank
Short Questions and Answers
1. What is model?
A Model is a simplification of reality.
It’s a representation of something in the real world
2. Why do we model?
Model is a simplification of reality.
A model provides the blueprints of a system.
We build models so that we can better understand the system we are
developing.
3. What is modeling?
Modeling is a proven and well-accepted engineering technique which helps
build a model.
It is a blueprint of the actual system that needs to be built.
4 Person David:person
Example:
Aggregation:
In aggregation, a part can exist independent of the whole.
It is known as Whole – Part relationship.
Example:
Let us consider an example of a car and a wheel. It can also be
used with the bike, bicycle, or any other vehicles but not a
particular car. Here, the wheel object is meaningful even without
the car object.
Example:
Composition:
In a composition relationship, the part depends on the whole.
It is known as Whole – Part relationship.
Example:
A hospital and its wards. If the hospital is destroyed, the wards also get
destroyed.
Example:
Generalization:
The generalization relationship implements the object-oriented concept
called inheritance or is-a relationship.
It exists between two objects (things or entities), such that one entity is a
parent (superclass or base class), and the other one is a child (subclass or
derived class).
These are represented in terms of inheritance.
Generalization is an “is-a” or “kind of” relationship.
Example:
Dependency:
Whenever there is a change in either the structure or the
behavior of the class that affects the other class, such a
relationship is termed as a dependency.
It is a unidirectional relationship.
Example:
Example:
Composition:
In a composition relationship, the part depends on the whole.
It is known as Whole – Part relationship.
Example:
A hospital and its wards. If the hospital is destroyed, the wards also get
destroyed.
Example
Object diagram:
Object diagram is a collection of objects and their links.
Object diagram is UML structural diagram.it represent the static
view.
22.Define use case diagram.
Use case diagram is UML behavioral diagram
It represents the use case view.
Use case diagram are consisting of actor, use case and their
relationships.
Actor =
Other elements :
system boundary =
Association =
Generalization =
24.Define actor.
Someone interacting with use case.
System functionality.
Each actor must be linked to a use case
26.Define state.
States is a Condition or situation during the life cycle of an object
Initial state =
Final state =
It gives a clear picture of the changes shows the flow of activity of a process.
2
in the object's state in this process.
30.Define activity.
Sequence of behavior. activity
Activity means state of doing something.
Initial node=
Final node=
Decision =
Merge =
Fork =
Join =
Activity =
44.What Is UML?
The UML is a language for
Visualizing
Specifying
Constructing
Documenting
the artifacts of a software-intensive system.
Student
+ get tuition()
+ add s chedule()
Operation + get schedule()
s + delete schedule()
+ has pre-requisites ()
51.What is a message?
A specification of a communication between objects that conveys
information with the expectation that activity will ensue
o One object asks another object to perform an operation.
Student
- name
- addres s
Attribute - studentID
s - dateOfBirth
55. Compare: Abstraction and Encapsulation
Abstraction is focused mainly on what should be done while Encapsulation
is focused on how it should be done.
Abstraction hides complexity by giving you a more abstract picture while
Encapsulation hides internal working so that you can change it later.
Abstraction solves problem at design level while Encapsulation solves
problem at implementation level.
56. What are the two approaches for analysis & design?
SSAD(System Structured Analysis and Design)
Structured Analysis (SA), resulting in a logical design, drawn as a set of data
flow diagrams
Structured Design (SD) transforming the logical design into a program
structure drawn as a set of structure charts
OOAD
Designing systems using self-contained objects and object classes
57. How problem-solving approach is similar to SDLC?
Organization recognizes problem (Project Planning)
Project team investigates, understands problem and solution requirements
(Analysis)
Solution is specified in detail (Design)
System that solves problem built and installed (Implementation)
System used, maintained, and enhanced to continue to provide intended
benefits (Support)
Brief Answer Questions:
1. List and explain basic building blocks of UML?
2. Explain the basic characteristics of Object Orientation.
3. Compare: class and object diagram.
4. Differentiate Aggregation and Composition.
CLASS DIAGRAM:
1. Draw class +diagram for the following classes. Person, Employee,
Part-time employee, Full-time employee, Building, office (Mention
the attributes and methods)
2. Draw class diagram for banking system.
3. Draw class diagram for ATM system.
4. Draw class diagram for the following classes. Vehicle, Motor Vehicle,
Bicycle, Motorbike, Car. (Mention the attributes and methods)
5. Draw class diagram for the following classes. Bank, Customer, ATM,
Account (Mention the attributes and methods)
6. Draw class diagram for the following classes. Company, Employee,
Project, ProjectManager, Programmer, Tester. (Mention the
attributes and methods)
7. Draw class diagram for customer, order, special order, and normal
order. (Mention the attributes and methods).
OBJECT DIAGRAM:
1. Draw object diagram for company and employee.
2. Draw object diagram for order management system.
3. Draw object diagram for Employee and Address.
4. Draw object diagram for University and student.
5. Draw object diagram for product.
6. Draw object diagram for country, capital city class.
7. Draw object diagram for person, company class.
USE CASE DIAGRAM:
1. Draw use case diagram for library management system.
2. Draw use case diagram for Railway reservation.
3. Draw use case diagram for vending machine (Point of Sale
System).
4. Draw use case diagram for online shopping system.
5. Draw use case diagram for ATM System.
STATE DIAGRAM:
1. Draw state diagram for Washing Machine.
2. Draw state diagram for traffic light.
3. Draw state diagram for door object.
4. Draw state diagram for computer object.
ACTIVITY DIAGRAM: