Solution of UML External Question Bank
Solution of UML External Question Bank
3. Define the purpose of following terms with suitable example and UML notations
use case generalization
Use cases
Actor
8. What is the importance of use case diagram? Explain relationships between use cases
with suitable example and proper UML notations. Draw use case diagram for an
‘Online railway ticket reservation system’.
11. Define the purpose of following terms with suitable example and UML notations with
respect to class model.
(i) Association (ii) Compotation (iii) Aggregation (iv) Multiplicity (v) Constraint
(vi) Realization
12. Mention the importance of analysis and design stages in software development
process. Differentiate following with respect to analysis and design stages.
14. What is inheritance? List the different types of inheritance and explain how it
encourages reusability and sharing.
17. Draw the use-case diagram for Hotel Information System. There are two types of
customers: Tour-group customers and Individual customers. Both can book, cancel,
check-in and check-out of a room by Phone or via the Internet. There are booking
process clerk and reception staff who manages it. A customer can pay his bill by
credit card or pay utility bill.
18. Assume that vehicle class is defined as base class with price and year of
manufacturing. Derive two classes namely bus and truck from base class with bus
with seating capacity and truck with loading capacity. Develop classes with necessary
member functions to get and put data.
19. Represent the following relations among classes using UML diagram.
1. Students credit 5 courses each semester. Each course is taught by one or more
teachers.
2. Bill contains number of items. Each item describes some commodity, the price of
unit, and total on this price.
3. An order consists of one or more order items. Each order item contains the name of
the item, its quantity and the date by which it is required. Each order item is described
by an item type specification object having details such as its vendor addresses, its
unit price, and the manufacturer.
20. (i) Prepare a class diagram for each group of classes. Add at least 10 relationships
(associations and generalizations) to each diagram. File system, file, ASCII file,
binary file, directory file, disc, drive, track, sector
(ii) How signals can be organized into generalization hierarchy with inheritance of
signal attributes?
21. Prepare a class diagram for following group of classes. Add at least 10 relationships
(Associations and Generalizations). Use Association names and association end names
where needed. Also use qualified associations and show multiplicity. Explain diagram.
Classes: School, playground, principal, school board, class room, book, student,
teacher, cafeteria, rest room, computer, desk, chair, ruler, door, swing.
23. What are the Basic symbols and components used in sequence diagram? Explain with diagram.
25. What is model? Explain purposes of models. Also explain types of models.
29. Draw Non-swimlane vs swimlane Activity Diagram. Swimlane and Non-Swimlane Activity
Diagram The activity diagram example below describes the business process for meeting a
new client using an activity Diagram without Swimlane.
33. Draw a sequence diagram for issuing a book and renewing a book in online library
management system.
35. Explain nested states with appropriate diagram. Ans: Explain with phone-line state diagram.
[from Object-Oriented Modelling and Design with UML:Michael Blaha, James Rumbaugh ]
36. Construct a class modelling that reifies and supports the following state modelling concepts:
event, state, transition, condition, activity, signal event, change event, and signal attribute.
[from Object-Oriented Modelling and Design with UML:Michael Blaha, James Rumbaugh ]
37. Differentiate the following 1. Event and State 2. Association and Aggregation.
39. List and explain the steps of constructing application interaction model.
41. Mention the elements of an Activity Diagram and state chart diagram with example.
44. Define the purpose of following terms with its notations. i) state ii) transition iii) event iv)
guard condition.
45. Draw use case diagram for an ‘Online railway ticket reservation system’.
46. Prepare a class model for the hotel management system. The system should support chain of
hotels. A hotel contains two categories of rooms: executive and normal, both AC and non-
AC. The customers of executive rooms can avail extra facilities like games, swimming, food
service in rooms, etc. The booking is possible by internet or by phone. If the booking is
through phone, process is done by receptionist, and if booking is done through internet the
process is carried out by customer through hotel website. Depending on the number of days
customer stays, appropriate bill is generated. The bill also contains amount for transport, food
and other facilities enjoyed by the customer along with necessary taxes. The manager should
be able to generate reports like list of customers staying in the hotel, list of rooms empties,
monthly/yearly income, etc.
47. Draw a sequence diagram for issuing a book and renewing a book in online library
management system.
50. Draw state diagram that shows the states of a digital clock, which involves idle, setting hours
and setting mins.
51. Prepare class diagram for Bank Account with operation parameters.
Each member should be able to add information about their basic profile, work experience,
education, etc. Any user of our system should be able to search other members, groups or
pages by their name. Members should be able to send and accept/reject friend requests from
other members.
Members should be able to follow other members without becoming their friend. Members
should be able to create groups and pages, as well as join already created groups, and follow
pages.
Members should be able to create new posts to share with their friends. Members should be
able to add comments to posts, as well as like or share a post or comment. Members should be
able to create privacy lists containing their friends. Members can link any post with a privacy
list to make the post visible only to the members of that list. Any member should be able to
send messages to other members. Any member should be able to add a recommendation for
any page. The system should send a notification to a member whenever there is a new
message or friend request or comment on their post.
Draw Use-case diagram for above mentioned system requirement.
67. Construct Use-Case, Class, Sequence and Activity Diagram for Facebook Operation System.
68. Construct Use-Case, Class, Sequence and Activity Diagram for Railway reservation System.