DIT306 OJECT ORIENTED ANALYSIS AND DESIGN EXAM
SECTION ONE: MULTIPLE CHOICE QUESTIONS
In a use case diagram the boundary represents——————————?
a) An intermediary or interface of something outside the system
b) An API that is supplied by third party vendor and used to integrate with an external
system
c) The user interface or presentation layer of a system
d) The interface between interface or presentation layer of a system
ANSWER: A
When is acceptance testing performed in agile development?
a) At the end of each iteration
b) After system is ready
c) After the design stage
d) On the request of the client
ANSWER: A
————————-is the technique of hiding the internal implementation details of an
object.
a) Encapsulation
b) Inheritance
c) Polymorphism
d) Abstraction
ANSWER: D
A class is:
a) A template for objects of a particular type
b) A class of objects
c) A classification of objects
d) A group of objects
ANSWER: A
Grouping together of objects so that they can be easily manipulated is called?
a. Abstraction
b. Encapsulation
c. Modularity
d. Hierarchy
ANSWER: B
Physical relationship between software components and the hardware in the delivered
system can be shown by?
a) Use case diagrams
b) Activity diagram
c) Sequence diagram
d) Deployment diagram
ANSWER: D
A class is divided into the following compartments except.
a) Name
b) Methods
c) Attributes
d) All the above
ANSWER: D
Which of the following is the last phase of the systems development phase?
a) Prepare conversion plan
b) Write and test new programs
c) Build and test data
d) Build and test databases
ANSWER: C
The humans cope with the complexity in a fundamental way using?
a) Object
b) Abstraction
c) Class
d) Encapsulation
ANSWER: B
Which of the following diagram is time oriented?
a) Collaboration
b) Activity
c) Sequence
d) None of the options
ANSWER: C
The method of design encompassing the process of object oriented decomposition and
notation for depicting HOW the system should perform its functions is known as?
a) OOP
b) OOA
c) OOD
d) OOAD
ANSWER: C
Single inheritance, multi-level inheritance and multiple inheritance are some examples of
inheritance used in class diagrams.
a) True
b) False
ANSWER: A
In data flow diagrams —————show the direction of data flow and their name
describes the data flowing along the path.
a) Rounded rectangles
b) Diamonds
c) Arrows
d) Circles
ANSWER: C
A set of objects that share the same ——————-is referred to as a class.
a) Attributes
b) Behaviors
c) Messages
d) Attributes and behaviors
ANSWER: D
Which of the following statements is true in relation to OOAD?
a) Objects work together by sending messages to one another. The messages are
requests to perform operations
b) Objects are associated with one another, and the associations can take a variety of
forms
c) Polymorphism means “many forms”
d) All the options
ANSWER: D
Which of the following terms also refers to a parent class?
a) Base class and super class
b) Derived class and sub class
c) Static and dynamic class
d) None of the mentioned
ANSWER: A
——————- is defined as being “is-a” relationship.
a) Aggregation
b) Association
c) Generalization
d) Dependency
ANSWER: C
————————– specifies the number of objects in another class that an object can
interact with at any point in time.
a) Inheritance
b) Associativity
c) Relationship
d) Multiplicity
ANSWER: D
In object orientation both real and abstract objects are modelled into software. Which of
the following statements is true in this regard?
a) Real objects are objects with real existence those that we can see and touch
b) Abstract objects do not have real existence
c) None of the options
d) All of the options
ANSWER: D
A class is a blueprint of the objects to be created and assimilated into it as its instances.
a) True
b) False
ANSWER: A
Aggregation represents——————
a) Is-a relationship
b) Has-a relationship
c) Part of relationship
d) None of the above
ANSWER: B
The feature of the object oriented paradigm which helps code reuse is———
a) Object
b) Class
c) Inheritance
d) Aggregation
ANSWER: C
Software design is a process to transform user requirements into some suitable form that a
programmer uses in software development.
a) True
b) False
ANSWER: A
A good structured design has low cohesion and high coupling arrangements.
a) True
b) False
ANSWER:B
In OOD the attribute (data variables) and methods (operation on the data) are bundled
together. This paradigm is known as?
a) Encapsulation
b) Inheritance
c) Polymorphism
d) Abstraction
ANSWER: A
Grouping of all functionally related elements is known as————-?
a) Cohesion
b) Coupling
c) A and B
d) None of the above
ANSWER: A
Class is a set of objects that share the same ————
a) Name
b) State
c) Attributes
d) All the above
ANSWER: D
Transforming the WHAT into HOW is the job of…………………..
a) Analysis
b) Design
c) Feasibility study
d) Implementation
ANSWER: B
A use case diagram depicts how a system works from the standpoint of an external
observer?
a) True
b) False
ANSWER: A
Merge, fork, initial state and final state are symbols and notations used in a sequence
diagram.
a) True
b) False
ANSWER: A
Sequence and collaboration diagrams are examples of interactive diagrams.
a) True
b) False
ANSWER: A
————— is a type of inheritance indicating one class is a superclass of the other
a) Association
b) Aggregation
c) Generalization
d) Dependency
ANSWER: C
An object diagram represents an abstract model consisting of classes and their
relationships. But an object diagram represents an instance at a particular moment.
a) True
b) False
ANSWER: A
In implementation modelling the software components are modeled using deployment
diagrams.
a) True
b) False
Which of the following is not a symbol of the sequence diagram?
a) Swimlanes
b) Objects
c) Message
d) None of the above
ANSWER: D
An action in an activity diagram cannot be decomposed.
a) True
b) False
ANSWER: A
SECTION TWO. SHORT ANSWER QUESTIONS
1. Draw a use case diagram for the scenario below: [5 Marks]
Inventory System:
In order to generate an invoice a clerk must log in. If a clerk is a first time user, one
must have themselves registered. There should be an option for a user to register oneself
within the login page. Any user can use the system to view products online. The option of
login is also provided when a user views products online.
2. Explain FIVE advantages of object orientation, [5 marks]
3. Nurses work on a particular ward. Doctors are assigned a number of patients and during
their rounds visit a number of different wards. If a doctor needs advice, he/she may
consult with a a specialist consultant regarding a particular patient. The specialist may
see the patient. Specialists are basically senior doctors.
Required: draw a class diagram to include any inheritance, aggregation and multiplicities
where possible. [5 marks]
4. ABC restaurant consists of one chef, a customer and one waiter. The chef is responsible
for order of all the food ingredients, preparation of the food and doing washing up. The
waiter is responsible for taking the customer order, preparing the bill and taking the
payment made by the customer. The customer browses the menu, orders the food,
consumes the food, orders the bill and pays the bill.
Required: Draw the use case diagram for the restaurant showing the role of chef, waiter
and customer.
[6 marks]
5. Draw a diagram depicting inheritance for THINGS found on earth. [4 marks]
SECTION THREE OPEN BOOK
1. A bus company has several buses and drivers. The company has one garage and covers
several routes. At any one time, some buses will be on routes whilst others are garaged.
Individual buses are used on any route and drivers are allocated to any bus. Each route
has only one bus travelling on it at any one time. Passengers may have to take more than
one bus on a journey.
Required: Draw a class diagram depicting all the objects and their accompanying
attributes and relationships. [10
marks]
2. Great lake Health Centre has three GPs (General Practitioners), a practice nurse and a
receptionist. Patients who want to see a GP or the nurse must make an appointment via
the receptionist who uses a diary to find a suitable slot when the GP is free. Any Patient
can see any Doctor. Twice a day (morning and afternoon surgery) the receptionist needs
to copy the list of all patients due from the book onto an individual list for each GP. The
receptionist gives the list, along with the patients’ notes to the GP at the beginning of the
surgery. In addition, the practice keeps track of the drugs prescribed to each patient and
issues prescriptions for the patients.
The practice also wants to keep information about drugs suppliers. Each supplier may
supply many types of drug, however, only one supplier supplies each drug i.e. only
neolabs supply co-proxomol and only APS supply amitriptyline etc.
The Health Centre requires a computerized database system that will store details about
Staff, Patients and Drugs and Suppliers. It would like to maintain a computer-based
record of all appointments between Staff and Patients and of all prescriptions issued and
the drugs issued for each prescription. The receptionist will need to be able to update the
record as appointments are made and produce the individual lists for each member of
Staff at the beginning of each surgery.
Required: Draw a use diagram. [10 marks]
DBIT 306 – OBJECT ORIENTED ANALYSIS DESIGN
(Visited 248 times, 1 visits today)
Share this: