Oose Lab Manual
Oose Lab Manual
Total hours:45
TEXT BOOKS:
1. Ali Bahrami Object Oriented Systems Development Tata McGraw- Hill 2008
2. Martin Fowler Martin Fowler PHI/Pearson Education 2007
REFERENCES:
1. Stephen R. Schach Introduction to Object Oriented Analysis and Design Tata
McGraw-Hill 2003
2. James Rumbaugh, Ivar Jacobson, Grady Booch The Unified Modeling Language
Reference Manual Addison Wesley 2005
3. Hans-Erik Eriksson, Magnus Penker, Brain Lyons, David Fado UML Toolkit
OMG Press Wiley Publishing Inc 2004
LESSON PLAN
The main objective is the students become familiar with all phases of OOAD.
COURSE OUTCOMES:
1. Select the basic elements of modeling such as Things, Relationships and Diagrams
depending on the views of UML Architecture and SDLC.
2. Apply basic and Advanced Structural Modeling Concepts for designing real time applications.
3. Design Class and Object Diagrams that represent Static Aspects of a Software System.
4. Analyze Dynamic Aspects of a Software System using Use Case, Interaction and Activity
Diagrams.
5. Apply techniques of State Chart Diagrams and Implementation Diagrams to model
behavioral aspects and Runtime environment of Software Systems.
Detailed Lesson Plan
30 10/07/15
31 11/07/15
33 14/07/15
34 17/08/15
UNIT-V
74 26/10/15
75 27/10/15
77 30/10/15
78 31/10/15
TEXT BOOK :
1. Grady Booch, James Rumbaugh, Ivar Jacobson : The Unified Modeling Language
User Guide, Pearson Education.
UNIT-I
Introduction:
The various trends in S/W development give the change in the languages. In earlier
days S/W developers used Machine Languages, which deals with 0‘s and 1‘s
[Binary Number]. S/W developers felt it was difficult to program using binary
numbers. In later stage Assembly Language was used for a programming. Assembly
Language uses mnemonics, which is better than binary language. Then high-level
language was introduced. The human understandable English is used in the
programming languages. Initial stages of high-level languages have the procedural
/structural languages. Programmers concentrate more on functions rather than data.
To overcome this object oriented programming languages was introduced. In
OOProgramming the programmer concentrate or gives equal importance to
functions and data. The advantages over procedure languages are OOPS concepts.
Assembly LanguageMnemonics
Procedure/Structural
language
Global data
Concentrate on functions.
OOPS concepts.
Data hiding
Data encapsulation
Data abstraction
Inheritance
Polymorphism
Objects
Class
Dynamic binding
Message passing.
OBJECT ORIENTATION:
Promotion of reusability.
The
object encapsulate both the data (attributes) and functions (methods), they work
as a higher level of abstraction. The development can proceed at the object level,
this makes designing, coding, testing, and maintaining the system much simpler.
Traditional Approach:
Object-oriented approach:
Promotion of Reusability:
Objects are reusable because they are modeled directly out of real world.
The classes are designed generically with reuse. The object orientation adds
inheritance, which is a powerful technique that allows classes to built from each other.
The only differents and enhancements between the classes need to be designed and
coded. All the previous functionality remains and can be reused without change.
For example:
Windows applications needs windows object that can open
themselves on screen and either display something or accept input.
closing itself.
chart.
Chart object is responsible for maintaining its data and labels and
even for drawing itself.
Review of objects:
Object:
Attributes Methods
Color Drive it
Manufacturer Lock it
Cost Tow it
Attributes:
Data of an object.
Properties of an object.
Methods:
Procedures of an
object. or
Behaviour of an object.
The term object was for formal utilized in the similar language. The term
object means a combination or data and logic that represent some real-world entity.
Cost
Make
Model
languages.
For example:
Color 1. Can be declared as character to store sequence or character [ex: red, blue, ..]
2. Can declared as number to store the stock number of paint [ex: red
paint, blue paint, ..]
3. Can be declared as image (or) video file to refer a full color video image.
We can describe the set of things that an object can do on its own (or) we
can
do with it.
For example:
For example:
maintenance.
------------------
Car Object
Employee Class
David
John
Andrew Objects of
Alfred
Class Hierarchy:
Motor Vehicle
Bus Bus
Inheritance:
Car
Hyundai
Dynamic Inheritance:
Example:
A window objects change to icon and basic again. When we double click
the folder the contents will be displayed in a window and when close it, changes back to
icon. It involves changing a base class between a windows class and icon class.
Multiple Inheritances:
Some object-oriented systems permit a class to inherit its state
(attributes) and behaviour from more than one super class. This kind or
inheritance is referred to as multiple inheritances.
For example:
Utility vehicle inherits the attributes from the Car and Truck classes.
Vehicle
Utility Vehicle
Encapsulation and Information Hiding:
In per-class protection:
Class methods can access any objects of that class and not just the receiver.
In per-object protection:
Polymorphism:
Poly ‖many‖
Morph ―form‖
Example:
Flown by
A pilot ―can fly‖ planes. The inverse of can fly is ―is flown by ―. Plane ―is flown by‖ pilot
Cardinality:
Consumer-producer association:
Example:
Request for
Printing
Aggregations:
All objects, except the most basic ones, are composed of and may contain
other objects. Breaking down objects in to the objects from which they are composed is
de composition. This is possible because an objects attributes need not be simple data
fields, attributes can reference other objects. Since each object has an identity, one
object can refer to other objects. This is known as aggregation. The car object is an
aggregation of other objects such as engine, seat and wheel objects.
Car
Example:
Object Persistence:
Objects have a lifetime. They are explicitly created and can exist for
a period of time that has been the duration of the process in which they were
created. A file or database can provide support for objects having a longer
lifeline, longer than the duration of the process for which they are created. This
characteristic is called object persistence.
Meta-Classes:
Introduction:
Transformation 1 [Analysis]
Transformation 2 [Design]
Transformation 3 [Implementation]
Problem
Transformation 1
Statements
Analysis
Transformation 2
Design System
Transformation 3
Implementation Software
Detail Product
Transformation 1 [Analysis]
The way they use can provide insight into user requirements.
Transformation 2 [Design]
It begins with a problem statement and ends with a detailed design
that can be transformed into an operational system. This transformation includes
the bulk of the software development activity, including definition of how to build
the software, its development and it‘s testing. It includes the design descriptions,
the program and the testing materials.
Transformation 3 [Implementation]
It refines the detailed design into the system deployment that will
satisfy the users needs. It represents embedding the software product within its
operational environment.
with deciding
How to accomplish
them Which we do it
Analysis
How
Design
Do It
Implementation
Test
Testing
Use
Maintenance
The water fall S/W development process
The software process transforms the users needs via the application
domain to a software solution that satisfies those needs. High-Quality products
must meet users needs and expectations. The quality of the product should be
improved prior to delivery rather than correcting them after deliver.
To achieve high quality software we need to be able to answer the
following question.
There are different approaches for systems testing. Blum describes a means of
system evaluation in terms of four quality measures,
Correspondence
Correctness
Verification
and Validation
Validation
Verification
Correctness
* Correspondence measures how well the delivered system matches the needs of
the operational environment as described in the original requirements statement.
Object-Oriented Analysis
Object-oriented Design and
Object-oriented Implementation.
Build a Use-
Case model
Object
Analysis
Validation
test
Analysis
User satisfaction
Implementation
Usability test &
Build User
quality assurance
Interface &
test
Prototype
Design
The use-case model can be employed throughout most activities of software
development. The main advantage is that all design decisions can be traced
back directly to user requirements.
Prototyping
Component-based development
Incremental testing
The objects need to have meaning only within the context of the application domain.
Reuse, rather than build, anew class, know the existing classes.
Design methods.
Critique what we have proposed. It possible go back and refine the classes.
Prototyping:
It is important to construct a prototype of some of the key system
components shortly after the products are selected. A prototype is a version of a
software product developed in the early stages of the product‘s life cycle for
specific, experimental purposes. It enables to fully understand how easy or
difficult it will be to implement some of the features of the system. It gives users a
chance to comment on the usability and usefulness of the user interface design,
it can define use cases and it makes use Case modeling much easier.
Prototyping was used as a ―quick and dirty‖ way to test the design,
user interface and so forth, something to be thrown away when the ―industrial
strength‖ version was developed. The rapid application development (RAD)
refines the prototype into the final product.
Horizontal Prototype:
Vertical Prototype:
Analysis Prototype:
Domain Prototype:
Implementation:
Software components are built and tested in-house, using a wide range
of technologies. Computer aided software engineering (CASE) tools allow their
users to rapidly develop information systems. The main goal of CASE technology is
the automation of the entire information system‘s development life cycle process
using a set of integrated software tools, such as modeling, methodology and
automatic code generation. The code generated by CASE tools is only the skeleton
of an application and a lot needs to be filled in by programming by hand.
Testing:
Gang Of Four (GoF) [Erich Gamma, Richard Helm, Ralph Johnson and John Vlissides]
introduced the concept of design patterns.
1. It solves the problem – Design patterns are not just abstract representations of theoretical
research. To be accepted as a pattern it should have some proves practical experiences.
2. It‘s a proven concept – Patterns must have a successful history.
4. It has a human component - Good patterns make the job of the programmer easy
and time saving.
• Name of the pattern is used to identify the pattern as well as an descriptive of the
problem solution in general. Easy to remember and context related names
makes remembering patterns easy.
• Context of the pattern describes when and where the pattern is applicable. It also
describes the purpose of pattern and also the place where it is not applicable due
to some specific conditions.
• Solution of the design pattern is describes how to build the appropriate design
using this appropriate design.
Pattern Template:
1. PATTERN NAME (good and relevant names make patterns easy to remember)
2. INTENT (Which problem does the pattern solve)
3. ALSO KNOWN AS(alias names given to the pattern)
4. APPLICABILITY(when should this pattern be applied)
5. STRUCTURE(Graphical representation of the Pattern (using UML))
6. PARTICIPANTS(classes and objects taking part in the pattern and their relationship)
7. COLLABORATORS (says how objects/actors interact to achieve the goal).
8. CONSEQUENCES (how does they solve the problem and what are the
consequences if the problem is solved by this way.)
9. IMPLEMENTATION (Issues related with Implementation, language specific issues)
10. KNOWN USES (Examples of the same pattern used in real systems)
11. RELATED PATTERNS (Specify is there any similar patterns. Where are they
used.) The Singleton Design Pattern:
Singleton
Static singleton *
create_Instance()
*Other singleton
behaviour*
Implementation:
class singleton
private:
static int no_of_obj;
public:
if (no_of_obj==0)
pointer_instance=new singleton;
no_of_obj=1;
return pointer_instance;
singleton s=singleton::create_instance();
Generative Patterns: Patterns that suggest the way of finding the solution
Non Generative patterns: They do not suggest instead they give a passive solution.
Frameworks:
Framework groups a set of classes which are either concrete or abstract. This
group can be sub classed in to a particular application and recomposing the necessary items.
b. Design patterns are instructive information; hence they are less in space where
Frameworks are large in size because they contain many design patterns.
Note:
UNIT –II
OBJECT ORIENTED METHODOLOGIES:
Overview of methodologies:
Rum Baugh Method Describing the object model or the static structure of the system.
The object modeling techniques (OMT) presented by Jim Ram Baugh and
his counters describes a method for the analysis, design and implementation or
system using an object-oriented technique. Object modeling technique (OMT) is
a fast, intuitive approach for identifying and modeling all the objects all the
objects making up a system. The information such as class attributes, methods,
inheritance and association also can be expressed easily. The dynamic behavior
of objects within a system is described in OMT dynamic model. This dynamic
model specifies the detailed state transition and description. The relationships
can be expressed in OMT‘s functional model.
Analysis: The results are objects and dynamic and functional models.
System design: The results are a structure of the basic architecture of
the system along with high-level strategy decisions.
• An object model:
• An dynamic model:
The object model of bank system. The boxes represent classes and
the field triangle represents specialization.
Client
Client Account
Transaction
First name
Account
Account Transaction Trans date
Last name
Number
Trans time
Pin code
Balance
Trans type
Deposit
Amount
With draw post balance
Create transaction
OMT provides a detailed and comprehensive dynamic model. The state transition
diagram is a network of states, transitions, events, and actions. Each state receives one
or more events and the next state depends on the current state as well as the events.
No
been selected
Nothing is
Account has
selected
been selected
Selected
Select
checking or
checking
savings
account
Select
Enter the
transaction
amount
type
Confirmation
The OMT functional model
The OMT data flow diagram (DFD) shows the flow of data between different
processes in a business. An OMT DFD provides a simple and intuitive method for
describing business process with out focusing on the details of computer systems.
Process:
Data flow:
Data store:
carsatium
Bank
Use
Select
keyboard
card
entry
tion
type
Verify
User screen Select
Update
account
system architect
User
Class Diagrams.
Object Diagrams.
Process Diagrams
Interaction Diagrams.
Car
color
manufacturer superclass
cost
inherits
Ford
inherits
Mustang Escort
Taurus
The macro process serves as a controlling frame work for the micro
process and can takes weeks (or) even months. The technical management of the
system is interested less in the actual object-oriented design than in how well the
project corresponds to the requirements set for it and whether it is produced on time.
Conceptualization:
The class diagrams are used to describe the roles and responsibilities
of objects to carry out in performing the desired behavior of the system.
* The class diagram is used to decide what classes exist and how they relate to
each other.
* The object diagrams decide what mechanisms are used to regulate how
objects collaborate.
* The module diagram used to map out where each class and object should be declared.
* The module diagram is used to determine which processor to allocate a process. It
also determines the schedule for multiple processes on each relevant processor.
Evolution or Implementation:
Maintenance:
The Jacobson methodologies cover the entire life cycle and stress trace
ability between the different phases, both forward and backward. This trace ability
enables reuse of analysis and design work. The heart of their methodologies is the use-
case concept, which evolved with objectory (Object Factory for Software Development)
Use Cases
The use-case model captures the goal of the user and the responsibility of
the system to its users
The interaction between the use case and its actors, including
when the interaction occurs and what is exchanged.
How and when the use case will store data in the
system. Exceptions to the flow of events.
Library
Getting an
Interlibrary loan
Object-Oriented Software Engineering: Objectory
Tested in
Realized by
Express in Structured by
Implemented by
OK
NOT OK
The objects of the real world are mapped into the domain object model.
The analysis object model presents how the source code should be
carried out and written.
Implementation model.
Test model
The test model constitutes the test plans, specifications, and reports.
Use cases again are the central vehicle for modeling, providing traceability
throughout the software engineering processes.
Analysis
phase Design
Implementation phases
and Testing phase.
Analysis phase
The analysis phase defines the system to be built in terms of the problem-
domain object model, the requirements model, and the analysis model. The
analysis process is iterative but the requirements and analysis models should be
stable before moving to subsequent models.
The implementation environment must be identified for the design model. The
analysis objects are translated into design objects that fit the current implementation.
Testing phase.
There are several levels of testing and techniques. The levels include unit
testing, integration testing, and system testing.
Patterns
A pattern is instructive information that captures the essential structure and
insight of a successful family of proven solutions to a recurring problem that
arises within a certain context and system of forces.
It solves a problem.
It is a proven concept.
It describes a relationship.
All software serves human comfort or quality of life; the best patterns
explicitly appeal to aesthetics and utility.
Generative Patterns:
Patterns template
There are different pattern templates are available which will represent a pattern.
It is generally agreed that a pattern should contain certain following components.
Context The preconditions under which the problem and its solution seem to recur
and for which the solution is desirable. This tells us the pattern‘s applicability.
Forces constraints and conflicts with one another with the goals which we
wish to achieve.
Rationale justifying explanation of steps or rules in the pattern. This tells how
the pattern actually works, why it works and why it is good.
Known uses The known occurrences of the pattern and its application within
existing systems.
Anti patterns
Those describing how to get out of a bad situation and how to proceed
from there to a good solution.
Capturing Patterns
Focus on practicability.
Frameworks:
Framework groups a set of classes which are either concrete or abstract. This
group can be sub classed in to a particular application and recomposing the necessary items.
Note:
There are different methods for modeling object oriented systems. Each methodology
can represent same model with varying documentation style, Modeling language and notations.
• These models are related to different phases as they are the outcome of
each phase.
• In object design the models generated during analysis phase are refined.
• Object Model:
o It‘s an object diagram containing interrelated objects.
Do
course
College Studies Student Private
Center
Is a type
of
Physically
Handicapped
o There exists one to much relationship between student and private computer
center coz a student can courses in more than one private center.
o Physically handicapped student is a type of student [generalization].
• Dynamic Model
o One or more event may occur in a state and the system may undergo
transition from one state to the other state based on the event.
o State transition can be triggered by an event or completion of an activity.
o Hence next state depends on the current state and event.
Card INS
Idle Reading
Read
No Card
Complete
Verification
User gave
Trans
option
Process
o The system goes to Process state when the user gives the option for
transaction.
Scanner
Digital
Camera
Image
PIN Wise
Status
C
o
PIN/Choice Processd
e
PIN
W
i
Account wise
s
e
Choice
Barcode
Process
Bar Code
Process
S Trans
t
a
t
u
s
o The above diagram represents the flow of data between various
functional blocks.
o The external devices/entities
I are represented in a rectangular box
m
o The Process is represented in a oval shape which performs a
particular functionality. a
g
o The Data Store [InformationeStorage] is represented inside a parallel line.
o Labeled arrows represent direction of flow of data and the date itself.
W
i
s
e
Imag
e
Process
2. The Booch Methodology
operat
ion
Class Name
attributes
General Notation for a class
Association
Inheritance
Has
using
• Association can be quantified with the help of
Cardinality.
Student
Course
Name 1
1..N Name
Number
Year
BROWSER
WEBSERVER DATABASE
Http Req
Http Req
SQL query
Result set
HTML Page
HTML Page
o Module Diagram
Module diagram is used to show the allocation of classes and
objects to modules in the physical design of the system.
User Interface
o State Transition Diagram
This labeled line says that when that particular event occurs
the machine undergoes transition from one to another state.
No card Insterted/ waitfor card()
Inserted Card
invalid card
o Process Diagram
BAR code
scanner
Validatorq
Digital
Came ra
o The Process – Booch gave the concept of Macro process and Micro
Process. It highlights the management aspect.
o Use Case diagram captures the complete requirements of the user and
is used in almost all the phases of the software development.
o Use Case represents the interaction between the actor and the system.
ud
Enquiry
Check Card
Renev al Books
o Use Case diagram contains a set of use case where a single use case
represents a flow of events.
o If a use case extends a particular use case the derived case does
some functionality more than the base use case.
o The relation between two use cases is said to be <<uses>> if one use
case invokes the used one whenever needed.
o In the above example the Member (actor) may borrow books or return
books in a library.
o In both the cases the card should be checked and redundancy can be
eliminated by establishing uses relationship.
Model Represents an abstract of the system. It is build prior to the original system. It
can be used to make a study on the system and also can be used to analyze the effect
of changes on the system. Models are used in all disciplines of engineering.
Static Model Represents the static structure of the system. Static models are stable and they
Dynamic Model Collection of diagrams that represents the behavior of the system over time.
A model includes
• Clarity – Visual representations are mode clear and informative than listed
or written documents. Missed out details can be easily found out.
1) Class Diagram
3) Behavior Diagram
a. Interaction Diagram
i. Sequence Diagram
c. Activity Diagram
4) Implementation Diagram
a. Component Diagram
b. Deployment Diagram
Class diagram represents the types of objects in the system and the
various kinds of static relationships that exist between them. Class diagrams are used in
object modeling where real world objects are mapped to logical objects in computer
program. Notations and symbols used in Class diagrams are
1) Class Notation
2) Object Diagram
5) Qualifier
6) Multiplicity
7) OR Association
8) Association Class
9) N – ARY Association
1) Class Notation:
Classes are represented in a rectangular box. The top box has the name, the middle one
functions/ methods. A Box with a class name represents the most abstract representation of a
class.
E.g.
Vehicle
Vehicle
Vehicle
- Color
Color
- Brand
Brand
- Owner
Owner
#Drive()
+Stop()
-Turn()
-Reverse()
All the above diagrams represent the same class in different levels of abstraction.
Visibility of members can be specified using -, + and # symbols.
2) Object Diagram:
My car
Color: red
Brand: Ford
3) Class
Owner: Mr. Doss
Print
Print Control
Works for
Company Person
Employer Employee
In the above diagram Works for is the association that exist between Person and
Company. The arrow mark indicates the direction of association. i.e., The Person Works
for the company.
Association Role: it‘s related to association. Each class that is a member of an association
plays a role in the association called association role. E.g. The person plays the role of EMPLOYEE
in the WORKS FOR association where a company plays the role of EMPLOYER.
5) Qualifier:
Person
The qualifier here is the account and it defines that each instance of account is
related to 1 or 2 person. Hence the account qualifies the association maintains.
6) Multiplicity:
E.g:
The below diagrams says that each course can have any number of students OR each
student may attend any number of courses.
Also each department has one or more courses and a course may belong to one or
more departments.
Dept
1..*
has
1..*
attends
Student * * Course
7) OR – Association:
It‘s a relation in which a class is associated to more than one class and only one association
is instantiated at any instance of time for an object. It is represented by a dashed line connecting two
associations. A constraint string can be used to label the OR association line.
COMPANY
CAR
{or}
Is owned by
PERSON
8) Association Class:
It‘s an association that has class properties. The association class is atta.ched to an
Works
for
Person
Company
emplo emplo
yer yee
Works For
Salary
Here the works for relation has got one attribute salary. Hence an association class is maintained.
9) N – Ary Association:
It‘s an association where more classes participate. They are connected by a big diamond
1..* studies
Student
Class
* class
Mark
Sem
Mark[8]
avg
Containment is represented by a line with hollow diamond arrow at the end where a
Composition is represented by filled diamond at the end.
Car
for Containment.
Sweet Bag Meal Box
car
engine door
12) Generalization:
… in the example diagram specifies that there are some more sub
classes of CAR class are available and they are not mentioned.
E.g.
CAR
…
Benz
Ford Maruthi
Customer
- addressToBill: int
- Total: int
* 1
- addressToShip: int
- creditRating: int
+ CancelOrder() : void
1 1
0 Unregistered Issuer: 4.
PrefferedCustomer
- Number: int
- ExpirationDate: int
- Discount%:
* 1
0 Unregistered 4.
+ AuthoriseCharge() : void
- PricePerunit: int
UNIT-III
Classification:
It‘s the technique of identifying the class of an object rather than individual objects. In other
words it‘s the process of checking whether the object belong to particular category or not.
Classification Theory:
1. Booch: Classification guides us in making good decisions for modularization using the
property of sameness. The identified classes can be placed in same module or in different
module based on the sameness. Sameness/ Similarity can be measured with coupling and
2. Martin and Odell: Classification can be used for well understanding of concept
[Building Blocks].These classes iteratively represent the refinement job during
design. Classes also act as an index to various implementations.
Classification Approaches:
Many approaches have been introduced for identifying classes in a domain. The most
used ones are
The classes are identified from the NOUN PHRASES that exist in the
requirements/ use case. The steps involved are
1. Redundant Classes – Never keep two classes that represent similar information
and behavior. If there exist more than one name for a similar class
select the more relevant name. Try to use relevant names that are use
by the user. (E.g. Class Account is better than Class Moneysaving)
The above steps are iterative and the guidelines can be used at any level of
iteration. The cycles of iteration is continues until the identified classes are
satisfied by the analyst/ designer.
Review and
eliminate redundant
classes
Review irrelevant Review Adjectives
classes
Review Attributes
[Note: USE EXAMPLE FROM THE CASE STUDY]
A set of classes that are common for all domains are listed and classes are
identified based on that category. The set of class category is listed based on the
previous knowledge (Past Experience).
1. Concept Class
o This category represents a set of classes that represent the whole business
activity (Concept). The never contains peoples or events. These classes
represent the entire concept in an abstract way. (E.g. SavingsBank Class)
2. Events Class
o These are the category of classes that represent some event at a particular
instance of time. Mostly they record some information. (E.g. Transaction Class)
3. Organization Class
o This category contains the individuals who play some role in the system or
in any association. These people carry out some functions that may be
some triggers. People class can be viewed as a subcategory of
Organization class. This category again contains 2 subsets
i. People who use the system (E.g. Data Entry Operator who use the
system for entering attendance may not be an employee of the
college but a contract staff.)
ii. People who do not use the system but they play some role in the
system. (E.g. Lecturer, Students, Instructor etc)
5. Place Class
o This category includes tangible objects and devices like sensors involved
in the system.
Use case diagram/ Model represents different needs of the user and various actors
involved in the domain boundary. Unified Approach recommends identification of objects with
the Use Case model as the base. Since the use case represents the user requirements
the objects identified are also relevant and important to the domain.
[Note: USE EXAMPLE FROM THE CASE STUDY, SPECIFY ATLEAST 2 LEVELS OF
ITERATION FOR A SINGLE USE CASE SCENARIO]
CRC Cards – They are 4‖ X 6‖ cards where all the information about the objects is written.
Responsibilities
..
The above diagram represents the format of a CRC card. It contains the class name
and responsibilities on the L.H.S compartment. Class name on the upper left most
corner and responsibilities in bulleted format. Class Name identifies the class and
Responsibilities represent the methods and attributes. Collaborators represent the other
objects involved to fulfill the responsibility of the object.
This information on the card helps the designer to understand the responsibilities and
collaborating classes.
• Identify classes.
• Identify responsibilities.
and
responsibility
Identify
Assign
Collaboration
Responsibility
E.g.
Account
• withdraw()
Transaction.
The above diagram shows an example of a CRC card representing Account Class.
Its responsibility is to store information like Balance, Number and to have behaviors like
withdraw, deposit and getBalance.
Account class has 2 subclasses. They are Current Account and Savings Account. It
also collaborates with Transaction class to fulfill the responsibilities.
Guidelines for Naming Classes:
1. Association:-
Association role is the role played the objects involved in the association. It is
attached to link representing the association.
Works for
Company Person
Employer Employee
The above diagram represents the association between the person and the
company. The association says that Person object works for a company object.
In this association Company plays the role of employer and person plays the role of employee.
Answers for the following questions can be used to identify the associations.
1. Is the class capable of doing all its responsibilities?
2. If not what does it need?
3. What are the other class needed to fulfill the requirements?
Some cases the associations are explicit where in other cases they are identified from
general knowledge.
Common Association Patterns:
For Example
• Location Pattern – associations of type next to, part of, contained in that represents
association with respect to the physical location. For e.g. tyre is a part of car.
Super – Sub class relationship known as generalization hierarchy. New classes can
be built from other classes hence the effort for creating new classes gets reduced. The
newly built class is called a derived class and the class from which the new class is built is
called Base Class. This inheritance allows user to share the attributes and methods.
1) Top – Down: - Identify more generalized classes first analyze the purpose and
importance of those classes. If necessary identify the specialized classes and represent
them. If needed increase the number of levels of generalization/ inheritance.
2) Bottom – Up: - Identify classes and compare them for similar properties and methods. If
generalization applies find a new class that can represent the similar classes.
3) Reusability: - Analyze the specialized classes and check weather similar properties/ behavior
lie in same layer. If such members exist push them to top most level as possible.
4) Remove multiple inheritance if it creates any ambiguity in the design. Such inheritance
Object Oriented Analysis:
and consistent picture of requirements of the system must do to fulfill the user‘s requirement
needs.
In this phase developer will analyze how the user will use the system and what should be
done to satisfy the user. The analyst may user the following technique
3. Questionnaire
4. Observation
1. Fuzzy descriptions
2. Incomplete requirements
3. Unnecessary features
In three tire architecture the business layer actually implements the logic that
solves the requirement. Hence analysis done for objects in business layer. The Object
Oriented Analysis Process involves the following steps
5. Classification
a. Identify classes
b. Identify relationships
c. Identify attributes
d. Identify methods
1. Identifying Actors:
Actor represents the role of a user with respect to the system. An user may play
more than one role. Analyst have to identify what are the roles played by the user and
how they use. Actors can be identified using the following questions
Jacobson provides two – three rule in identifying actors. i.e. start with 2 or 3 classes
(minimum) number of classes and refine on later iterations.
[ Note: State the ATM System domain and specify the actors found from the Case
Study] 2. Developing a Simple Business Process Model
The entire set of activities that takes place in the domain are represented with the help of
a simple Business Process Model created with an UML activity diagram. This makes each
member of the team very familiar with the domain and overall activities that takes place when a
CENTER
INSERY CARD
ENTERS
PASSWORD
CORRECT
PIN?
SELECT THE
TRANSACTION
TYPE
PERFORMS
TRANSACTION
MORE
TRANSACTION?
The above diagram represents the Business Process Model for an ATM System. It
lists out following activities done by the user in an ATM Center.
Use case diagram represents various requirements of the user. This use case model can be
It consists of
a. Actors involved
b. Various Scenarios (Use Cases)
c. Communication between actors and use cases
d. Relation between various use cases
i. USES
ii. Extends
a. Actors: Actors represents the role played by the user with respect to the system. An user may play
more than one role. Actors are represented by any of the three ways in UML
<< ACTOR>>
Client
Client
<<Client>>
While dealing with the actors importance is given to the role than the people. An actor uses more
A use case can be executed by more than one actor. An use case is developed/ named by grouping a
c. Communication between actors and use case. Communication between an actor and use case is
represented by a straight line connecting the actor and the use case. The line represents that the actor/
user uses that particular use case. An actor may use more than one use case.
62
d. Relation between Use Case.
i) Uses – This relationship exist when there is a sub flow between use case. In order to avoid
redundancy (created in all the places where there is a sub flow) sub flow is represented by a
single Use Case and it can be used by any Use case. This is a way of sharing use cases.
Check Balance
ii) Extends – Extends relation exist between Use Cases if one use case is similar to
the other use case but does some more operations. (Note the same relation exist
between super – sub class). This relation helps the analyst and the designer to
establish relationship between classes and packages that implement the use case.
Deposit in to Savings
Bank
Deposit in to
Account
Deposit in to Current
Account
An Abstract Use Case is one not executed by the user and it is not complete.
Abstract Use Case is used by other use case. They can be inherited.
63
3. Find out the common operations among the use cases and represent
them as a specialized use case.
Documentation:
UNIT-IV
The need of access layer is to design/ create a set of classes that have rights and the way to
communicate with the database or data storage place. It isolates following information from the
Translate Request The business layer is not aware of the protocol for accessing data as the
internal details are known only to the access layer classes. So any request from the business layer for
data cannot be transformed to storage as such. Such request are translated in to a form that storage
64
Business
Request Translated
Layer Access Database/
query etc
Translate Result The business layer objects/ classes cannot understand the data send as such
from the database/ storage. But the access layer classes can understand the format of result data
from the storage as well as the format the business layer can understand. Hence the access layer
classes translate the result data in to a form so that business layer can understand.
Business
Translated Unformatted
Layer Access Database/
result result from
Object/ Layer Data Storage
storage
Classes Classes
Persistent Data Persistent data is one which exists between executions. These data is to
be stored permanently for future executions.
E.g. In a student class the name, no, address etc are persistent data.
Transient Data Transient data is one that may not exist between executions. These data
are need not to be stored in database for future execution.
E.g. In a student class the variables meant for temporary purpose like temp_tot etc are transient data
65
2. Singe method classes can be removed and added in
another class.
iv. Iterate and refine.
The second diagram represents the step of identifying relationship between access layer classes.
id Component Model
Access Layer
EA class1 EA Unregist
ClassDB1
Mirror Class Package
EA EA EA 4.00 Unregist
EA EA EA 4.00 Unregist
Class2 Class3 ClassDB2 ClassDB3
EA EA EA 4.00 Unregist
A 4.00 Unregistered Trial Version EA 4.00 Unregistered Trial Version EA 4.00 Unregis
id Component Model
EA 4 Unregistered Trial Version EA 4.00 Unregistered Trial Version EA 4.00 Unregist
Business Layer
Access Layer
EA class1 EA Unregist
ClassDB1
Mirror Class Package
EA EA EA 4.00 Unregist
EA EA EA 4.00 Unregist
Class2 Class3 ClassDB2 ClassDB3
EA EA EA 4.00 Unregist
A 4.00 Unregistered Trial Version EA 4.00 Unregistered Trial Version EA 4.00 Unregis
66
id Component Model
Access Layer
EA
ClassDB1
EA
EA
ClassDB3
EA
DBMS – Database Management System is a set of programs that enables the creation and
maintenance of collection of related data. The DBMS and associated programs access,
manipulate, protect and manage the data.
Transient:
Study of DBMS:
DBMS – Database Management System is a set of programs that enables the creation and
maintenance of collection of related data. The DBMS and associated programs access,
manipulate, protect and manage the data.
DBMS also contains the full definition of the data formats. It is called meta data or schema.
Since the complexity and issues regarding the storage lies with in the DBMS it provides a
generic storage management system.
Database Views:
The low level storage details are isolated from the user and for better understanding the
logical concepts are supplied to the user.
67
Database Models:
A Persistence – This refers to the life time of an object. Some objects outlive the programs.
Persistent Objects are one whose life time is long and transient objects are those whose
lifetime is very short.
database model is a collection of logical constructs used to represent the data structure
and data relationships with in the database.
The conceptual model represents the logical nature of organization of data where a
implementation model represents the real implementation details.
1. Hierarchical Model
This model represents the data as a single rooted tree structure. Each node represents the data
object and connection between various nodes represents the parent – child relationship. This
relationship resembles the generalization relationship among objects. A parent node can have
any number of child node where each child node shouldn‘t have more than one parent node.
Motor Vehicle
2. Network Model
A network database model is similar to hierarchical model. Here in this model each
parent can have any number of child nodes and each child node can have any
number of parent nodes.
3. Relational Model
This model defines 4 basic concepts. Table, Primary Key, Foreign Key and relation
between tables.
Table – It‘s a collection of records form the table. The Table is composed of various
rows (tuples) and columns (attributes).
68
Relation between tables – The primary key of one table is the foreign key of another table.
Also data can be searched with the combination of more then one table.
Because of these reasons the relational model is the most widely used model.
STUDENT_UNIV STUDENT_COLLEGE
Univ % of
root
STUDENT_TRANSPORT
Database Interface:
The interface of a database includes Data Definition Language (DDL), Data
Manipulation Language (DML) and a query.
DDL – Data Definition Language is the language used to describe the structure of
Objects (data) stored in a database and relation between them. This structure of
information is called Database Schema. DDL is used to create tables in a database.
E.g
69
Data Manipulation Language is used for creating, changing and destroying data inside a
table. SQL (Structured Query Language) is the standard language for making queries.
Traditional DML specifies what are the data desired and specifies how to retrieve the
data. Object Oriented DML just specifies what data is desired and not how. While
developing applications that uses SQL the mostly used way is to embed the SQL
statements inside the program.
Transaction:
A transaction is said to be commit if all the transactions made are successfully updated
to the database and said to abort if all the changes made cannot be added to database.
Concurrent Transaction:
Distributed Database is one in which a portion of database lies of one node and other on
another node.
Client Server computing is developed by extending this concept i.e, modules are allowed to
execute in different nodes with different memory spaces. The module that needs and request
the service is called a client and the module that gives the service is called a server.
The network operating system is the back bones of this client sever computing. It provides
services such as routing, distribution, messages, filing and printing and network
management. This Network Operating System (NOS) is called middleware.
70
Client Program:
Server Program:
File Server – Manages sharing of files or file records. Client sends a message to the file
server requesting a file or file record. The File Server checks the integrity and
availability of file/record.
Data Base Servers – Client pass the SQL query in the form of messages to the
server in turn server performs the query and dispatches the result.
Transaction Servers – Client sends message to the server for a transaction (set
of SQL statements) where the transaction succeeds or fails entirely.
1. A combination of client/ front end process that interacts with the user and server/
backend process that interacts with the shared resources.
2. The front end and back end task have different computing resource requirements.
3. The hardware platform and operating system need not be the same.
4. Client and Server communicate through standard well defined Application Program
Interface (API).
5. They are scalable.
In Distributed Computing the applications and business logic are distributed across
multiple processing platforms. It implies that the processing should be carried out in
different process for the transaction to be completed. These processes may not run at
same time. Proper synchronization mechanism is provided if needed.
71
Cooperative processing is a type of distributed computing where more then one process is
to be completed for completing the entire transaction. These processes are executed concurrently
on different machines and good synchronization and inter process mechanism is provided.
Distributes Object Computing offers more flexible way of distributed computing where
mobile software components (objects) travel around the network and get executed in different
platforms. They communicate with application wrappers and manage the resources they
control. In this computing the entire system is made up of users ,objects and methods.
Various DOC standards are OMG‘s CORBA, OpenDoc, Microsoft ActiveX/ DCOM.
In a relational database system the data are stored in the form of tables where each
table contains a set of attributes/fields and tuple/rows. In an object oriented environment
the counterpart of class is a table.
In the mapping the classes are mapped to table such a way that the persistent data
members of classes will become the attributes. Each row in the table corresponds to an
object. The following mapping types are used in object oriented environment
It‘s a simple one – to – one mapping of a class to a table and properties of class are
become the fields. Each row in the table represents an object and column
represents a property of objects. CAR
Cost
CAR TABLE Color
Model
2. Table – Multiple Classes Mapping
Here a single table is mapped to more than one non inherited classes. So all the
persistent properties of mapped classes represents the columns of the table. The column
value that is not common for the mapped classes can be used to identify the instance.
In the below example the Employee Class and Customer Class are mapped to person
table. Instances of employee class can be identified from the rows whose custID value is NULL.
Also instances of Customer class can be identified from the rows whose empID is NULL.
Employee
Name
empID
72
Mr. X A1, a2 C123 NULL
Name
Address
empID
In this case a single table is mapped to more than one class which has a common super class.
This mapping allows user to represent the instances of super class and subclasses in a single table.
In the given example the instances of Employee class can be identified from the
rows whose wage and salary are NULL. The instances of Hourly Employee can be
identified from the rows whose salary is NULL. The instances of Salaries Employee can be
identified from the rows with Wage as NULL.
In the below example Employee and Customer inherits the properties of Person class. The
Person table is mapped to Person class, Employee table is mapped to Employee class and
Customer table is mapped to Customer Class. There exist is a relation between Employee,
person and customer, person.
cd Data Model
- address:
- dept: - name:
- slary: - address:
Trial Version Unr
- company:
73
Name Address Company
LOCAL DATABASES
MDBS
MDBS
APPLICATION
Multi database system is a heterogeneous data base system facilitate the integration
of heterogeneous database systems and other information sources. Federated multi
database systems are one that are unstructured or semi unstructured.
This multi database system provides single database illusion to the users. The user initiate
a single transaction that in turn uses many heterogeneous databases. Hence the user performs
updation and queries only to a single schema. This schema is called the global schema and it
integrates schemata of local databases. Neutralization solves the schemata conflicts.
The query and updates given to global schema by the user is decomposed and
dispatched to local databases. The local databases are managed by gateways as one gate
way for each local database.
Open Database Connectivity (ODBC) is an API (Application Program Interface) that
provides database access to application programs. The application programs can
communicate with the database through function calls (message passing) regardless of the
type and location of the database.
Datab
ODBC Driver Manager
O ase A
Application
C
Program
A Driver for Database B Datab
P ase B
Datab
ase C
74
The above diagram shows the logical view of Virtual Database using ODBC. The
application program uses ODBC API to communicate with the database. Application
programs passes same messages to interface irrespective of the type and location of
database. ODBC maintains a set of drivers necessary for communicating with the
database. This reduces the database related complexities for a programmer.
The driver manager loads and unloads drivers, performs status checking, manages multiple
connection and heterogeneous databases.
Business layer involves lot of logic that is to be implemented in order to achieve the
customer needs. Analysis is carried out for business layer objects. Hence the design for
business layer has got a strong dependency with the model produced in the analysis phase.
2. Business Layer Class Design – apply design axioms for designing classes for
business layer. Designing classes includes designing their attributes, methods
and relationships.
I. Design/ Refine UML Class diagram developed in previous phase/ iteration.
2. Specify visibility, data type and initial value if any for attributes
ii. Design/ Refine Methods (Use OCL and UML Activity diagram)
1. Add left out methods
4. Design the method body using UML Activity diagram and OCL.
iii. Refine association
Refining Attributes:
75
Attributes represents the information maintained by each object. Complete list of
attributes should be identified in order to maintain a complete set of information. Detailed
information of attributes is not specified in analysis phase but in design phase.
OCL is used to represent the attribute details inside a class diagram/ notation.
OR
E.g.
+ Name : String
- represents a public attribute Name of type String
# Name : String = ―Hello‖
3) Conversion Method – Methods responsible for converting one form of date to other form.
6) Attribute Ger – Method responsible for getting the values from an attribute
7) I/O Methods – Method responsible for getting and sending data from a device
76
8) Domain Specific – Those methods responsible for some functionality in a
particular domain.
Designing Protocol:
Protocol gives the rule for message passing between objects. Protocol is the interface
provided by the object. Based on the visibility of the protocol it can be classified into
1. Public Protocol
2. Private Protocol
3. Protected Protocol.
Private protocols specify messages that can be send only by the methods inside the class.
Protected protocols specify messages that can be send only by the methods inside the class.
Public protocols specify messages that can be send by the methods with in the class
as well as objects outside the class.
Internal layer contains the private and protected protocols where an External layer
contains public protocols.
OCL Specification for Protocol Design:
The specification is
+ getName () : String
It is a private protocol that accepts 2 arguments one of type String and other
of type Integer. It returns a value of type Boolean.
77
Designing Method body:
UML Activity diagram along with OCL specification can be used for representing the
body of the method. Activity diagram representing the method body says how the
Business layer involves lot of logic that is to be implemented in order to achieve the
customer needs. Analysis is carried out for business layer objects. Hence the design for
business layer has got a strong dependency with the model produced in the analysis phase.
3. Business Layer Class Design – apply design axioms for designing classes for
business layer. Designing classes includes designing their attributes, methods
and relationships.
I. Design/ Refine UML Class diagram developed in previous phase/ iteration.
2. Specify visibility, data type and initial value if any for attributes
ii. Design/ Refine Methods (Use OCL and UML Activity diagram)
1. Add left out methods
4. Design the method body using UML Activity diagram and OCL.
iii. Refine association
iv. Refine Generalization and aggregation.
Refining Attributes:
78
Attributes represents the information maintained by each object. Complete list of
attributes should be identified in order to maintain a complete set of information. Detailed
information of attributes is not specified in analysis phase but in design phase.
OCL is used to represent the attribute details inside a class diagram/ notation.
OR
E.g.
+ Name : String
- represents a public attribute Name of type String
# Name : String = ―Hello‖
10) Destructor – The method that destroys instances/ Method invoked when an
object is freed from memory.
11) Conversion Method – Methods responsible for converting one form of date to other form.
14) Attribute Ger – Method responsible for getting the values from an attribute
15) I/O Methods – Method responsible for getting and sending data from a device
79
16) Domain Specific – Those methods responsible for some functionality in a
particular domain.
Designing Protocol:
Protocol gives the rule for message passing between objects. Protocol is the interface
provided by the object. Based on the visibility of the protocol it can be classified into
4. Public Protocol
5. Private Protocol
6. Protected Protocol.
Private protocols specify messages that can be send only by the methods inside the class.
Protected protocols specify messages that can be send only by the methods inside the class.
Public protocols specify messages that can be send by the methods with in the class
as well as objects outside the class.
Internal layer contains the private and protected protocols where an External layer
contains public protocols.
OCL Specification for Protocol Design:
The specification is
+ getName () : String
It is a private protocol that accepts 2 arguments one of type String and other
of type Integer. It returns a value of type Boolean.
80
Designing Method body:
UML Activity diagram along with OCL specification can be used for representing the
body of the method. Activity diagram representing the method body says how the
Software Design represents the logic of the software system providing more dependency to
the computer domain than physical/ user domain. Design actually deals with ―LOGIC TO
IMPLEMENT IN PROGRAM TO ACHIEVE THE SYSTEM GOAL‖
Software Design Process is the set of activities involved in developing a good and quality design.
Iterate
The above diagram shows the different sub phases in software design process.
Unified Approach suggests 3-tired architecture. Since design has strongly dependency with
implementation, the design should carried out for these layers separately.
4. Business Layer Class Design – apply design axioms for designing classes for
business layer. Designing classes includes designing their attributes, methods
and relationships.
I. Design/ Refine UML Class diagram developed in previous phase/ iteration.
81
i. Design/ Refine attributes (Use OCL)
2. Specify visibility, data type and initial value if any for attributes
ii. Design/ Refine Methods (Use OCL and UML Activity diagram)
1. Add left out methods
4. Design the method body using UML Activity diagram and OCL.
iii. Refine association
i. Design the macro level user interface – identify view layer objects
ii. Design micro level user interface
[Note: Explanation is given for 3 sub process separately. Example is given in CASE study
of ATM system.]
82
These can be used in the software design for the following reasons
Axiom2 The information axiom Minimize the information content of the design
It says that when we implement one requirement of an user it should not affect the
other requirement or its implementation. I.e., each component should satisfy its
requirements without affecting other requirements.
E.g.
Requirement2: Node1 one should take minimum time for sending due to heavy traffic.
Choice 1: C1 reads the files and send the file header first and then the content in a
byte stream. Here the component satisfies the first requirement
where it fails to satisfy the second requirement.
Choice 2: C1 reads the files and compress the content and file header contains the
file and compression information. Since the file size transferred
is reduced this choice satisfies both requirements.
to reduce the information content is usage of inheritance in design. Hence more information can be
reused from existing classes/ components.
E.g.
Vehicle Car
Name Name
Brand Brand
Owner Owner
Color
83
Stop() Engine No
Start()
Stop()
Class car maintains more information even though they are already maintained in
vehicle class. Since car class maintains more information the design that contains the
car class makes the design look more complex.
Vehicle 3 properties and 2 methods.
Car
Vehicle
Color
Name
Engine No
Brand
Owner Cngecolor()
Stop()
Start()
In this case the class car inherits some reusable methods and properties from vehicle
class and hence it has to maintain 2 attributes and 1 method. Hence the class car looks simple.
Corollaries:
Corollaries are derived from design axioms(rules). These corollaries are
suggestions to the designer to create a quality design.
They are
Corollary 4
Corollary 1
AXIOM 1
Corollary 2
84
AXIOM 1
Corollary 3
Corollary 1 Uncoupled design with less information content.
Hence by reducing the strength of coupling between classes/ components reduces the complexity
of the design.
Coupling It‘s the measure of association established between 2 objects/ components. Designers
prefer weak coupling among components because effect of change in one component should have
less impact on the other component. The degree (strength) of coupling is the function of
Interaction coupling exist between 2 objects if there is a message passing between those 2 objects.
The strength of interaction coupling depends on the complexity of messages passed between them.
Inheritance coupling exist between super and sub class. Inheritance coupling is
desirable. Types of coupling
Each class should have a single well defined purpose and the aim of the class is to
full fill that responsibility. If the class aims at implementing multi purpose subdivide the
class in to smaller classes.
85
Complex classes are difficult to understand and hence for reuse needs more effort. Many times
unnecessary members are reused as the super class was a complex one. The guideline says that ― The
smaller are your classes, better your chances of reusing them in other projects.
Large and complex classes are too specialized to be reused.‖
The designer, analyst and programmer should maintain strong dependency among the products
obtained during the different phases of SDLC. Hence a class identified during the analysis is designed in
Designer should consider the programming language while creating design using technologies.
Corollary 5 Standardization
The Designer/ Programmer should be aware of the existing classes/ components available in the
standard library. This knowledge will help the designer to reuse the existing classes and design the newly
needed classes/ components. A class/ pattern repository is maintained to store all the reusable classes and
components. Even in most of the cases the repository is shared. Repository maintains the reusable
components, description, commercial/ non commercial and usage.
[Note: Include inheritance , importance and need of inheritance, types with one example]
It‘s a specification language used for representing properties of objects in an UML diagram.
It is English like language. The rules and semantics of the UML diagrams can be represented using
OCL. OCL specifications in UML diagrams make UML diagrams more clear and informative.
1. Item. Selector
E.g.
Stundent1. No = 30
86
E.g.
rd
Student1 is the Item, mark is the selector and 3 (qualifier) that represents 3 mark
3. Boolean Expression
E.g. S1. mark > S2. mark represents a Boolean value of true or false.
4. Set operation
Student select (mark >40) selects a list of students who has mark greater than 40.
5. Attribute specification
OR
+ Name : String
- represents a protected attribute Name of type String with initial value Hello
The specification is
Where argument list is arg1 : type, arg2 : type, arg3 : type … argn : type
E.g.
+ getName () : String
87
It‘s a public protocol named getName with no parameters and it returns a
value of type String.
It is a private protocol that accepts 2 arguments one of type String and other
of type Integer. It returns a value of type Boolean.
Name =
# Student:: + getName() : String
getName()
The activity diagram does not specify any details of getName where the OCL
specification near the function call represents the clear idea about the method getName.
View layer objects are more responsible for user interaction and these view layer
objects have more relation with the user where business layer objects have less interaction
with users. Another feature of view layer objects are they deal less with the logic. They help
the users to complete their task in an easy manner.
The Major responsibilities of view layer objects are
1. Input – View Layer objects have to respond for user interaction. The
user interface is designed to translate an action by the user (Eg. Clicking the
button) in to a corresponding message.
88
c. For every class identified determine if the class interacts with the human
actor. If so
For complex application if the user interface is simple it is easy for the users to learn
new applications. Each User Interface class should have a well define single purpose. If a
user cannot sit before a screen and find out what to do next without asking multiple
questions, then it says your interface is not simple.
The UI should make the users feel they are in control of the software and not the
software controls the user. The user should play an active role and not a reactive role in the
sense user should initiate the action and not the software.
89
Some ways to make put users in control are
4. Avoid Modes.
Unit – V
Software Quality Assurance Testing – For Satisfying the Customer – Give more importance
to testing the Business Logic and less importance to satisfaction of the user.
User Interface Testing – Usability and User Satisfaction – More importance is given to the
easiness of the User Interface and less importance to the logic.
• Minimum Value – 1
• Minimum Value
• Medium Value
• Maximum Value – 1
• Maximum Value
• Testing Strategies
o Black Box Testing.
o White Box Testing.
o Top down Approach.
o Bottom up Approach.
(Note: Refer SE notes/ Pressman book)
• Impact of OO on Testing
o Impact of Inheritance
90
It is not necessary to test Inherited Methods because its already been
verified in the Base class.
But if the inherited method is over ridded then the behavior may
change and it is needed to be tested.
In the above case a test case can be reused such a way that the
expected o/p of the test case is changed and used.
o Test Cases
Test cases represents various testing scenarios.
Determine the strategy (Black box, white box etc.) document what is to
be done.
o Continuous Testing
91
If you reach an impasse (deadlock) sleep on it.
Beware that error correction should not create more number of errors.
Example Format
Test plan
1. Project Name:
2. Team Name:
3. Test Team Details:
4. Shedule:
5. Object/ Class under testing:
6. List of Methods:
.
ONLINE QUESTIONS
UNIT-I
QUESTIONS OPT1 OPT2 OPT3 OPT4 OPT5 OPT6 ANSWER
The entities of the
physical world are Physical
called ________ Entities Objects Real Entities Methods Objects
The mechanism by
which the data and
functions are bound
together within an
object is called as Encapsula
______ tion Inheritance Polymorphism Class Encapsulation
_______ supports the
concept of OOP C++ VB Java Oracle C++
______ increases
flexibility by
permitting the addition
of a new class of
objects without
modifying existing Dynamic Polymorphi Dynamic
code binding sm Inheritance Class binding
Advantage of OOPs Simple Simple Complex Complex Complex
has important hardware software software hardware software
technology for building system system system system system
Using a single function
name to perform
different types of tasks Encapsula
is known as tion abstraction polymorphism Inheritance polymorphism
In inheritance, super
class is also known as Parent Friend
_________ Class Class Child Class Sub Class Parent Class
------ is a mechanism
that associates the code
and data it manipulates Encapsula
into a single unit. tion Abstraction Polymorphism Inheritance Encapsulation
The process of
invoking an operation Function
on an object is referred Message Overloadin Operator Virtual Message
to as ------ Passing g Overloading Function Passing
The phenomenon
where the object
outlines the program
execution time and
exists between Persistenc
execution of a program e Genericity Extensibility Delegation Persistence
is known as---------
In which of the
following mechanisms,
types of all variables Static Dynamic Dynamic
and expressions are not Strong Weak Binding/ early Binding/ late Binding/ late
known until runtime Typing Typing binding binding binding
It is the
enforceme
nt of the
class of an
object,
such that
objects of
different
types may
not be
interchang
ed, or at It is the
the most property of It is the
they may an object It is the property of an
be through property that object through
interchang which its distinguishes which its
ed only in existence an active existence
Which of the following very transcends object from transcends
statements about restricted time and/or one that is not All of the time and/or
Persistence is correct? ways. space. active. mentioned space.
What is that concept in
type theory in which a
single name may
denote objects of many
different classes that
are related by some
common super class Monomor Type
referred to ______ phism Checking Polymorphism Generalization Polymorphism
Object oriented
technology is built
upon a sound
engineering foundation,
whose elements are Von
collectively called as Neumann Object Structured Programming
_________ Model Model Model Model Object Model
Which of the following Smalltalk FORTRAN
programming language and and Perl and Smalltalk and
are object oriented in Simula ALGOL C and Ada Python Simula
nature
UNIT-II
O
P
T
QUESTIONS OPT1 OPT2 OPT3 OPT4 OPT5 6 ANSWER
Test methods within
each
object____________ integration system acceptance
__ unit testing testing testing testing unit testing
A function that has
access to the private
member of the class
but is not itself a private
member of the class member inline friend protected
is called as function function function function friend function
It is necessary that a
constructor in a class
should always be
________ private public protected in main() public
sum of the
size of size of data sum of the size
Size of an object is member member and of data member
equal to size of data functions member and member
___________ members only only functions none functions
………………….method
is good for producing
user-driven analysis
model Rumbaughetal Jacobson Booch Shaler/mellor Jacobson
……………….method
produce detail object
oriented design
models Rumbaugh-etal Jacobson Booch Coad/yardon Jacobson
which of the
following mobel is static dynamic functional
not a OMT parts? object model model model model static model
a process description
and consumer-
producer OMT
relationships can be OMT static OMT dynamic functional OMT functional
expressrd using object model model model model3 model3
……………..
………………. Is an
abstract
representation of a
system construct to
understand the
system prior to
building or modifying none of the
it model object class above model
the process of
determining at
runtime which
function to invoke is
termed as dymanic object
…………………. static binding binding persistance meta class dymanic binding
A class is a collection all the
of _______________ data structure methods objects above objects
_________ are
created by run time
system. class object function all the above object
___________ can be
abstract.
___________ can not class constructor destructor,
be abstract. object , class ,object ,destructor constructor class ,object
Objects
communicate with
each other or
interact among
themselves by message- none of the message-
____________ dynamic linking binding passing above passing
________________
represents one or
more conceptual
connections between Aggregatio none of the
objects Association n both a & b above Association
Specialization is also
called
________________re
lationship. “has – a “ “part –of” “one-one” “is-a” “is-a”
A class that cannot
be instantiated is none of the
called __________ meta class drived class abstract class above abstract class
The protected data own class and
members are visible its derived any where in none the own class and
in its ____________ class own class the program above its derived class
__________ is/are a
pure object oriented
language . C++ smalltalk java c# java
Test methods within
each
object____________ integration system acceptance
__ unit testing testing testing testing unit testing
for
routines for routines
for rountines that are that are for rountines
The Library programs that are difficult to difficult to none of the that are
a written repetitions type solve above repetitions
which one the
following is not a debugging
utility program text editors aids compiler I/O routines compiler
System software that
helps the user to
correct logical memory Debugging library
mistake utility program dump acids programs Debugging acids
the program of
placing jobs in a
queue for execution Batch
is called programming spooling queuing Multitasking spooling
an account
A Shareware is a share program text editor package package text editor
completes completes the
completes the the task in task after is time completes the
task in given very short given time consuming task in given
A Realtime system time time interval program time
An arrangement in
which analysis
assigns a group of
analysts to survey a project pool Team
specific system is oriented oriented functional Oriented functional
The three stage planning,a
model described by nalysis,impl planning,analy planning,analysi
Bowman,davis and Analyis,design,i ementatio sis,resource planning,anal s,resource
wetherbe mplementation n allocation ysis,design allocation
when the when the
candidate candidate
technical writer are before at the time at the time of system nears system nears
employed investigation of analysis programming completion completion
the ________
dimension tells
whether the primary
concern is
strategic,magerial or time focus MIS Analysis focus
operational
Which of the
following is not a evaluation of Analysis of
part of the feasiblity cost existing candidate
study data collection estimates system system data collection
which of the
following constitues
a pictorial language flow chart algorithms pseudocode program flow chart
the techniques of
writing a good software
program forms part analysis of engineerin design of operating software
of the algorithm g algorithms system engineering
material,ener
Flow system models money,goods,p material,go money,materi gy,informatio material,energy,
shows the flow of ower ods,data al,information n information
A structured program Redundant many Redundant
generally has compact looks codes many inputs outputs codes
one entry many entry
A good module one entry and and many many entry and many one entry and
should have one exit exit and one exit exit one exit
cost reliable and reliable and cost
software engineering reliable effective cost effective none of the effective
primary aims on software software software above software
A directed dashed
line represents
____________ none of the
relationship. Message Association Dependency above Dependency
A dashed line with
hollow arrowhead
represents
____________ generalizatio
relationship. realization association dependency n realization
A ___________ allow
us to you to create
new kind of building
blocks derived from
existing one. tagged value stereotype interface class stereotype
A tagged value
extends the
_____________ of a
UML building block. vocabulary properties semantic definition properties
A constraint extends
the _____________
of a UML building
block. vocabulary properties semantic definition semantic
UNIT-III
OP OP
QUESTIONS OPT1 OPT2 OPT3 OPT4 T5 T6 ANSWER
in object
oriented
design of classes are
software,whic object defined based an object
h of the inherit the on the can belong an object can
following is properties attributes of to two classes are belong to two
not true? of the class objects classes always different classes
the system
interm of
inputs and
outputs is
defined under
the concepts system
of analysis system design black box environment black box
desing phase
will usually be top down bottom up random centre fringing top down
data,archit
data,archit architecture,pr ectural and data,architectural data,architectural
ectural and ocedural and interface ,interface and ,interface and
design phase procedural interfacedesign designs procedural procedural
includes design only only only designs designs
In object
oriented
design of attributes attributes,
softwareobject and name operations and name and none of the attributes,name
have only name only operations above and operations
A constuctor is
called an object is an object is a class is an object is
whenever declared used declared a class is used declared
Choose the a a constructor a desructor
correct destructor cannot be can be a consructor is a constructor
statement ia inherited virtual virtual not inherited cannot be virtual
Class
Dog:public
X,public y is an multiple repeated linear none of the multiple
instance of inheritance inheritance inheritance above inheritance
Which of the
following
operators
cannot be no such operator
overloaded? >> ?: + exist ?:
A model is an
abstract
representation
of a system,
constructed to
understand
the system
prior to
building or
modifying it. model system language structure model
Most
modelling
techniques
used for
analysis and
design
involve______ conceptual graphiclanguag
____ . model e symbols descriptive text graphiclanguage
____________
can be viewed
as a snapshot
of a system’s
parameters at
rest or at a
specific point dynamic static implementation
in time model test model model model static model
A
____________
is a collection
of procedures
or behaviours,
reflect the
behaviour of a domain
system over object static
time model use case model model dynamic model dynamic model
____________
__ is a
specification
language that
uses simple
logic for
specifying the
properties of a
system. UML OMT OCL DFD OCL
A class
diagram is a
collection of
___________
modelling
element. object static use case implementation static
A
____________
___ is an
association Generalizat
attribute. Multiplicity Qualifier ion composition Qualifier
____________
_ specifies the
range of
allowable
associated
classes. navigation navigability multiplicity associations multiplicity
An__________
___ is an
association
among more
than two or- is-a a-part of
classes. association relationship association n-ary association n-ary association
____________
_ show the
configuration
of run-time
processing
elements and
the software collaborati sequence component deployment deployment
components. on diagram diagram diagram diagram diagram
A
___________
is a grouping
of model
elements. component package folder packet package
____________
__ represents
a situation in
which a
change to the
target element
may require a
change to
source model component
element in dependenc information dependenc deployment model
dependency y dependency y dependency dependency
A
____________
__ is a graphic
symbol
containing
textual
information. model symbol note Datatype note
____________
_ represents a
built-in
extensibility
mechanism of
UML. model stereotypes swimlane flow stereotypes
Actions may
be organized
into meta
___________ model crosslanes swimlane attribute swimlane
Packages can
be used to
designate not
only logical
and physical
grouping but
also
____________ component
__. s elements metamodel use case group use case group
The
____________
may be used
for the upper
bound
,denoting an
unlimited
upper bound. # * & ? *
Each action in
activity
diagram is
assigned to
___________
swimlane. three two one four one
A
____________
_ is an
alternative
way to
understand Sequence Collaboration Activity State chart Sequence
the overall diagram diagram diagram diagram diagram
flow of the
control of a
program.
The
____________
_ relationship
is used when
there is more
than one use
case that is
similar to
another use
case but does communic correspond
a little more. ation extends s uses extends
The purpose of
____________
__ is to
understand
the algorithm
involved in
performing a interaction activity statechart interaction statechart
model. diagram diagram diagram diagram diagram
Each swim
lane is
separated
from
neighboring
swimlanes by
___________
lines on both
sides. cross vertical horizontal dashed vertical
both
A modelling notations
language must and model both notations
include notations elements only notations and model
____________ and model and and model elements and
_ elements guidelines guidelines elements guidelines
The
disadvantage both
of interaction
____________ diagram
is that they are and
great only for interaction collaboration collaborati state chart interaction
representing a diagram diagram on diagram diagram diagram
single
sequential
process.
____________
___ is a form Generalizat aggregatio
of association. ion composition n navigation aggregation
A constraint is
used to
__________
rules of a UML both add both add and
building block. add modify and modify none modify
The
architecture of
a software-
intensive
system can be
described by
____ views. three five nine none five
Which view
doesn’t
represents a
software-
intensive implement
system? class use case ation deployment class
A use case
view
represents
_______ both static
aspects of the and both static and
view. static dynamic dynamic none dynamic
The _______
view addresses
the
performance,
scalability and
throughput of implement
the system. use case process ation design process
The _______
view addresses
the
configuration
management implement
of the system’s use case process ation design implementation
releases.
The _______
view addresses
the
distribution,
delivery and
installation of
the parts that
make up of the
physical implement
system. use case process ation None None
A ________ is
a contract or
an obligation responsibil
of a class. constraint note ity none responsibility
_________
relationship is
used to model specializati dependenc
an inheritance. on generalization y none generalization
A line with a
solid diamond
represents
________ specializati aggregatio
relationship. on generalization n composition composition
A link can be both
viewed as a generalizati
subset of generalizati on and
_________. on association association none association
A _________
diagram
emphasizes
the structural
organization of
the objects
that send and
receive
messages. sequence activity use case collaboration collaboration
state of
object state is state is
In UML cannot be represente represented as a state is
diagram of a represente state is d as an result of an represented as
class d irrelevant attribute operation an attribute
when
operations
are when
performed when instances methods when instances
Attributes are on an of objects are are when classes are of objects are
assigned value object defined invoked identified defined
methods
specify methods specify
operations algorithms methods algorithms
and whereas do not whereas
In object- methods operations change methods and operations only
oriented are only state what values of constructor are state what is to
design identical is to be done attributes same be done
Each swimlane
represents
responsibility
for part of the
overall activity
and may be
implemented
by one or
more
____________ Class Model Graph Object Object
The two types
of
implementatio both deployment both deployment
n diagrams are diagram and diagram and
____________ activity deployment component component component
___ diagram diagram diagram diagram diagram
A
____________
is similar to a
Petri diagram,
where a token
represents an
activity statechart collaboration activity deployment statechart
diagram. diagram diagram diagram diagram diagram
An activity is
shown as a
__________,co
ntaining the
name of the
operation. Rectangle Ellipse round box decision box round box
When an
activity symbol
appears within
a state symbol,
it indicates
the_________
___ of an both a and
operation. Execution termination b only Execution
____________
_______ is the
process of
transforming a
problem
definition from
a fuzzy set of
facts and
myths into a
coherent
statement of a
system’s
requirements. Analysis Design Testing None Design
The
____________
_____ are
external
factors that
interact with
the system, Use cases class diagram actors activity diagram actors
__________
are scenarios
that describe
how actors use class activity Interaction
the system. diagram diagram diagram Use cases Use cases
____________
____ is a
special flow of
events through activity Interaction Sequence
the system. Use cases diagram diagram diagram Use cases
A
____________
_is an atomic
set of activities
that are
performed
either fully or Transforma A measurable Transactio
not at all. tion value n Design Transaction
The
__________
association is
used when you
have one use
case that is
similar to
another use
case but does
a bit more or is
more
specialized. Uses extends class Hierarchy extends
UNIT-IV
OP
QUESTIONS OPT1 OPT2 OPT3 OPT4 OPT5 T6 ANSWER
The __________
association occurs
when you are
describing your use
cases and notice that
some of them have
sub flows in common Uses extends class Hierarchy Uses
_____________ use
case is not complete
and has no initiation
actors. Concrete static dynamic abstract abstract
Each use case has
______________mai
n actor One two three four One
A ____________ can
serve as an initial
understanding of the
requirements Analysis Design Testing Document Document
______is the
specification of the
number of
occurrences of one
object related to
occurrences of
another object super class sub class objects operations. operations.
______ serve as
input for creation of scenario-
other modeling scenario-based class based behavioural flow-oriented based
elements. elements elements elements elements. elements
_______ diagram
represents the
actions and decisions
that occur as some UML
function is UML swim lane UML activity relational activity
performed. diagram diagram diagram none diagram
diagram represents
the flow of actions &
decisions and UML swim
indicates which UML swim lane UML activity relational lane
actors perform each. diagram diagram diagram none diagram
The DFD is presented
in a fashion. structural functional operational hierarchical hierarchical
The data-flow
modeling is a core
modeling activity in
analysis. controlled nested structured complex structured
______ continuity
must be maintained
as each DFD level is informatio
refined. informational flow data flow functional flow none nal flow
_____ can be used to
asses the simplicity
of function . validation specification cohesion variation cohesion
______ represents control
the behavior of the monitor monitoring control specificatio
system. specification system specification control system n
____ is used to
describe all flow
model processes that process
appear at the final monitor process monitor specificatio
level of refinement. specification specification specification none n
______ are set of
attribute defined for
potential class and
applied to all multiple- retained common-
instructions of class. common-attribute attribute information needed service attribute
_____ defined a
relationship between collaboration association
classes. associations s relations operations s
______ diagram
represents behavior
by describing how
classes move from
state to state state use case sequence none sequence
____ must occur to
force an object to sequence instance operation trigger. trigger.
make a trition from
one active state to
another.
_____ establish the
context of the
problem and overall
function of the
system. places structures roles events places
A class has state that
represent its
behavior as the sys
performs its . operations functions unions none functions
model
Which task is allocate model associated
performed during identify responsibiliti messages model class
use-case realization participating es among between associated class relationshi
refinement? classes classes classes relationships ps
Which process
document describes
design mechanisms,
any mappings
between design
mechanisms, and the Software Software
details regarding Architecture Design Vision Development Vision
their use? Document Guidelines Document Plan Document
In the state of a state
machine, a behavior upon
can be defined before reaching a reaching a upon leaving a inside a
_____. state state state inside a state state
When identifying
design elements, a
simple analysis class
will map to
a(n)_____. active class interface design class subsystem design class
In which OOAD
activity is the Identify
distribution Identify Design
mechanism Identify Design Design Architectural Mechanism
identified? Elements Mechanisms Class Design Analysis s
Identify Design
Elements is part of Define a Design
which workflow Candidate Design Perform Refine the Component
detail? Architecture Components Architectural Architecture s
Object-oriented Classes of the Classes of
system modelling C++ system, their Objective C the system,
using CRC method Java programs for programs for responsibilities programs for their
gives the system the system and the system responsibili
collaborating ties and
classes collaborati
ng classes
template
template for for objects
objects of a of a
particular a class of a classification particular
A class is a group of objects type objects of objects type
Class
Collaborating Class Responsibil
Collecting with Responsibilities Creating ities and
The expansion of the Responsibilities Relevant and Relevant Collaborato
acronym CRC is Classes Classes Collaborators Classes rs
may have
new
attributes
may have new and new
may have new attributes and operations
When a subclass is may have operations only new operations in addition
created using may have only only in addition to in addition to to those of
inheritance the attributes of operations of those in parent those of the the parent
resulting class parent class parent class class parent class class
its
attributes
its attributes change
its attributes are change it has no during
An object is selected invariant during during it has attributes operation
for modelling a operation of the operation of numerous relevant to the of the
system provided system the system attributes system system
Multiplicity is the
same as what
concept for an ERD? Relationship Attribute Entity Cardinality Cardinality
Composition is a
stronger form of
which of the Encapsulatio All of the Aggregatio
following? Aggregation n Inheritance above. n
A class that
A class that A class that has has no
has no direct direct A class that has direct
A class that has instances, instances, but no direct instances,
direct instances, but whose whose instances, but but whose
but whose descendants descendants whose descendant
An abstract class is descendants may may have may not have descendants s may have
which of the have direct direct direct may not have direct
following? instances. instances. instances. direct instances instances.
The term Complete Total Partial Total
for a UML has the Overlapping rule Disjoint rule specialization specialization specializati
same meaning as rule rule on rule
which of the
following for an EER
diagram?
A UML diagram
includes which of the List of List of All of the All of the
following? Class name attributes operations above. above.
An object can have
which of the
following All of the All of the
multiplicities? Zero One More than one above. above.
Which of the
following statement An object
is true concerning An object is an A class is an includes A class includes An object is
objects and/or instance of a instance of encapsulates encapsulates an instance
classes? class. an object. only data. only data. of a class.
Which of the
following applies to a Constructor
class rather than an
object? Query Update Scope Scope
Reusability of
The benefits of The ability to analysis, Improved
object-oriented tackle more design, and communication
modeling are which challenging programming between users, All of the All of the
of the following? problems results analysts, etc. above. above.
The term Incomplete
for a UML has the
same meaning as
which of the Total Partial Partial
following for an EER specialization specialization specializati
diagram? Overlapping rule Disjoint rule rule rule on rule
Updates an Deletes and Creates a
A constructor existing existing new
operation does which Creates a new instance of a instance of a All of the instance of
of the following? instance of a class class class above. a class
Which of the
following is a
technique for hiding
the internal
implementation Polymorphis All of the Encapsulati
details of an object? Encapsulation m Inheritance above. on
Expresses a part- Expresses a Expresses an is- Expresses an is- Expresses a
of relationship part-of a relationship a relationship part-of
Aggregation is which and is a stronger relationship and is a and is a weaker relationshi
of the following? form of an and is a stronger form form of an p and is a
association weaker form of an association stronger
relationship. of an association relationship. form of an
association relationship. association
relationship. relationshi
p.
UNIT-V
QUESTIONS OPT1 OPT2 OPT3 OPT4 OPT5 OPT6 ANSWER
Testing is a -------- if
a program does not
work correctly. Failure. Success. Complete. Partial. Failure.
Loop testing comes
under which testing White
method box . Black box. Green box. Yellow box. White box .
Which testing
methods are used
by end-users who
actually test Trial and
software before Error Alpha and Beta White box Black box Alpha and
they use it. testing. testing. testing. testing. Beta testing.
To test a function,
the programmer has
to wrote a -----
which calls the
function and passes None of the
its test data. Stub. Proxy. Driver. above. Driver.
The testing
technique that
requires devising
test cases to
exercise the internal White
logic of a software box Glass box Grey box Black box Black box
module is called------ testing. testing. testing. testing. testing.
Software
develop
Independent test ment Software
groups is a part of--- project Software development
----------- team. testing team. Execution. Planning team. project team.
Low level Top
components are down
combined into integrati Integration Bottom up Bottom up
clusters in on. testing. integration. Cluster testing. integration.
Both
Both Inheritance
Testing OO class Inheritance and
operations is made Encapsul Polymorphis and Polymorphis
more difficult by ation. Inheritance. m. Polymorphism. m.
Black box White box Stress None of the Black box
Unit testing is a testing. testing. testing. above. testing.
The important
element of the
validation process is Alpha Gama Configuration Configuration
a ----------------- testing. Beta testing. testing. review. review.
Simple
loop,
Nested
loop, Simple loop,
structure Simple loop, Nested loop, Simple loop, Nested loop,
loop, Nested loop, While loop, Nested loop, Concatenated
The different classes Unstruct For loop, Do while Concatenated, ,
of loops seen in loop ured Structured loop, For Unstructured Unstructured
testing are loop. loop. loop. loop. loop.
Testabilit
y,
Select the correct Stability Testability, Testability,
characteristics that and Understandabil Communicati Versatility, Understanda
lead to testable Consiste ity and on, Speed Accuracy and bility and
software. ncy. Simplicity. and stability. Testability. Simplicity.
Both Hardware and
Software are
integrated and Task Behavioral validation System
tested for error in testing. testing. testing. System testing. testing.
Software testing
accounts to what
percent of software
development costs? 10-20. 40-50 . 70-80. 5-10. 40-50 .
Loop Testing comes
under which testing Black box White box Yellow box Green box White box
method? testing. testing. testing. testing. testing.
Graph based testing
comes under which Black box White box Yellow box Green box Black box
testing methods? testing. testing. testing. testing. testing.
_________ of
software design
defines the
relationship
between major
structural elements
of the
software,styles and interface architectural architectural
design patterns. design design class design design activity design
The importance of
software design can Custome
be stated with a r
single word requirem
____________. ent engineering model quality quality
Software design is
an iterative process
through which
requirements are
translated into
a__________ for
constructing the
software. Blueprint process scenario system design Blueprint
_________ refers to
a sequence of
instructions that
have a specific and
limited function in abstracti data procedural procedural
software design. on abstraction abstraction limit data. abstraction
Collection of data
that describes a
data object is design data
concept is called abstracti procedural data
___________. on abstraction abstraction data structure. abstraction
The overall structure
of the software and
the ways in which
that structure
provides conceptual
integrity for a software
system is named as engineeri software software software software
_____________. ng design abstraction architecture. architecture.
structural
Architectural design ,framewo
can be represented rk,dynam regular,depe
using the models ic,proces software,futuri ndant,engine structural,fra
like ______ , ______ s& stic,design,proc ering,archite mework,dyna
, _______ functiona ess & ctural none of the mic,process &
&_________. l. framework. &conceptual. above. functional.
_________ is the
concept used to
hide the details of
data structure and
procedural
processing behind a
module interface in
software data information information
engineering. hiding hiding design hiding all the above. hiding
In the design
patterns
___________ is the
language specific
patterns generally
implement an
algorithm element
of a component & both idioms both idioms
specific interface &coding &coding
protocol. idioms coding patterns framework patterns patterns
___________
represents a
implementation-
specific skeletal
infrastructure for framewo
design work. rk design protocol none framework
The two
components of
software
architecture design design
pyramid are data & data design & data analysis data design &
_________ & design architectural & design data design & architectural
___________ model design analysis design analysis design
__________ is a
technique that
reuses design
elements that have pattern-
proven successful in based programming pattern programming pattern-
the past. design based data programming design. based design
______ are used to
create interface and
also interacts with controller boundary
software. sub class super class class boundary class class
is used to assemble
a collection of
related classes. methods objects package instance. package
When faced with
severe deadline
pressure,
experienced project
managers some
times use a project
scheduling and
control technique
called White - Effort
_________________ Boxing Black -Boxing Time-Boxing Validation Time-Boxing
___________
enables you to
determine what
tasks will be
conducted at a given Time - Project Time line
point in time. Boxing Time line chart tables Scheduling tool chart
Software
develop
Independent test ment Software
groups is a part of--- project Software development
----------- team. testing team. Execution. Planning team. project team.
Overloading without
explicit arguments operator Unary Binary Unary
to an operator is overloadi Argument operator operator operator
known as ------- ng overloading overloading overloading overloading
Overloading with
single explicit
arguments to an operator Unary Binary Binary
operator is known overloadi Argument operator operator operator
as ------- ng overloading overloading overloading overloading
________ feature
can be used to add
two user-defined
operator data types. Function Overloading Arrays Pointers Overloading
Which of the
following
overloading
operator does not
allow in operator
function in c++? + >> ./ ?: ?:
Pure virtual function
should be declare in outside the
------------------------- public private protected class public
The friend function
binary operator
overloading
operator must have
________ operand two three one four three
The friend function
unary operator
overloading
operator must have
________ operand two three one four one
The technique of
building new classes
from the existing
class is called --------- inheritan polymorphis
---- ce friend m Overloading inheritance
The class derived
from two or more single
than two base class inheritan multiple hybrid hierarchal multiple
is called ________. ce inheritance inheritance inheritance inheritance
Derivation of several
classes from a single single hierarchal
base class is called inheritan multiple hybrid hierarchal inheritancens
________. ce inheritance inheritance inheritancens: :
Overloading feature
can add two
________ data
types. in-built enumerated user-defined static user-defined
The public member
of a class can be
accessed by its own
objects using the Scope
________ resolutio
operator. n Relational Arithmetic DotAns: DotAns:
Derivation of a class multileve
from another l
derived classes is inheritan multiple hybrid hierarchal multilevel
called ________. ce inheritance inheritance inheritanceAns: inheritance
Derivation of class
involving more than multileve
one form of l
inheritance is called inheritan multiple hybrid hierarchal hybrid
________ ce inheritance inheritance inheritance inheritance
.A _________ is a
function declared in
a base class that has
no definition
relative to the base virtual pure virtual pure virtual
class. function function stream class function
Pure virtual function
is equated to ------- 0 1 2 3 0
Inheritance provides
the concept of derived virtual base
________. class subclass class reusability reusability
The virtual function
must be defined in Private or
_______ Public Private Protected protected Public
The function in base
class is declared as
virtual using the
keyword _______ Virtual virtual function pure virtual friend Virtual
Virtual functions are
from the concept of polymorphis
______ objects polymorphism inheritance None. m
To use a friend
function to overload
the ++ or --
operators we have operator
to pass the ----- & operand & object & operand &
as a argumen reference reference object & reference
_____________. t parameter parameter argument parameter
_____ is achieved
when a virtual
function is accessed run time run time
through a pointer to polymorp polymorphis
the base class. hism inheritance class friend. m
We cannot have
virtual constructors
but _____ are translato default virtual static virtual
allowed. rs constructor destructor members. destructor
The keywords
private and public
are known as
_________ labels. static dynamic visibility const visibility
Duplication of
inherited members
of ___ inheritance
avoided by making
the common base
class, a virtual base
class. single multi-level multipath hierarchicalAns multipath
visibility mode
----------- is the must be any of
default visibility public, private ,
mode. private public protected protected private
Operator
overloading in a function operator
class known as overload overload Overloading Overloading
_______ operator function operator operator
92