0% found this document useful (0 votes)
196 views7 pages

2020 - Marking - HNDIT2313 Object Oriented Analysis and Design

The document contains instructions for an examination on object oriented analysis and design. It includes 6 questions related to software development methodologies, object oriented approaches, UML modeling, class diagrams, activity diagrams, and the unified software development process. Students are instructed to answer 5 of the 6 questions in 3 hours. The questions test understanding of core object oriented concepts and ask students to provide code examples, draw diagrams, and discuss advantages and differences between various modeling techniques.

Uploaded by

dmaseni111
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
196 views7 pages

2020 - Marking - HNDIT2313 Object Oriented Analysis and Design

The document contains instructions for an examination on object oriented analysis and design. It includes 6 questions related to software development methodologies, object oriented approaches, UML modeling, class diagrams, activity diagrams, and the unified software development process. Students are instructed to answer 5 of the 6 questions in 3 hours. The questions test understanding of core object oriented concepts and ask students to provide code examples, draw diagrams, and discuss advantages and differences between various modeling techniques.

Uploaded by

dmaseni111
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

[All Rights Reserved]

SLIATE SRI LANKA INSTITUTE OF ADVANCED TECHNOLOGICAL EDUCATION


(Established in the Ministry of Higher Education, vide in Act No. 29 of 1995)

Higher National Diploma in Information Technology


Second year, first Semester Examination – 2020
HNDIT2313 Object Oriented Analysis and Design
Instructions for Candidates: No. of questions:6
Answer only five questions No. of pages : 3
Time: 3 hours

Question 01

(i) What is meant by software development methodology? (02 marks)

A Software Development Methodology is a framework used to structure, plan, and control


the software development process

(ii) Mention two advantages of using proper software development approach (02 marks)

• Clear understanding of the task ahead


• Identify drawbacks earlier
• Provide better estimates
• Deliver stable systems
• Provide better schedules
• Keep the customer informed

(iii)What is object-oriented approach (04 marks)

approach to system development that views information system as a collection of


interacting objects that work together to accomplish task.

(iv) Discus the advantages of using object-oriented software development approach,


comparing to traditional software development approach (12marks)

• Suitable answer including followings: Modularity (easy to partition),


Modifiability, Extensibility (easily upgraded), Maintainability
(Total 20 marks)
Question 02

(i) What is an object in software development? (02 marks)

Object is a bundle of properties and behaviors which represent real world entity.

(ii) What is the role of constructer in object-oriented programming? (02 marks)

Initialize objects from classes

(iii)Briefly mention the relation between inheritance and function overriding (04 marks)

Allows a subclass or child class to provide a specific implementation of a method that is


already provided by one of its super classes or parent classes. So super class functions
can override from sab classes.

(iv) Write the C++ code to implement the classes of grocery store billing system as the given
details. (12 marks)

using namespace std;


class SalesTransaction
{
protected :
string transactionID;
float transactionAmount;
string date;
public:
void calculateValue()
{
}
SalesTransaction(string txnid, float amt, string d)
{
transactionID = txnid;
transactionAmount=amt;
date=d;
}
};
class OnlineTransaction : SalesTransaction
{
private:
string deleveryAddress;
string customerName;
string cstomerphone;
};
int main()
{
SalesTransaction S("4",0,"22");
cout<<"Hello World";
return 0;
}
(Total 20 marks)
HNDIT 2 nd
year 2020 1 Semester – Object Oriented Software Design and Analysis
st

2
Question 03

(i) What is meant by model? (02 marks)


System representation of a thing, specially of a system
(ii) Mention two advantages of modeling in software designing? (02 marks)
• Early representation of what is going to build
• May have number of views
• A model is quicker and easier to build
• Represent real or imaginary things from any domain.
• Useful for understand of system
(iii)Relationships and diagrams are building blocks of UML. What are meant by relationship
and diagram? (04 marks)
• Relationship - Associations between elements
• diagram - Graph of things and their relation ships
(iv) Draw a use case diagram for the following scenario in a grocery store app (12 marks)

(Total 20 marks)

HNDIT 2nd year 2020 1st Semester – Object Oriented Software Design and Analysis
3
Question 04

(i) What is meant by a class in object-oriented analysis and design? (02 marks)

Category or group of things that have the same attributes and the same behaviors.

(ii) What is a boundary class according to object-oriented concepts? (02 marks)

Class which provides interface to interact between system with external actors

(iii)Explain the difference between class diagram and object diagram (04 marks)

Class diagram represent the classes (object types) in the system with their properties and
methods.
Object diagram represent the initialized objects in the system with values of properties and
methods

(iv) Assume you are designing an online web site for a beauty salon. Draw the class diagram
considering the following scenario. (12marks)

The available treatments, like facial, hair strait, nail polishing, etc. are listed in the system
with relevant price and customers can view them. The treatment details can be edited.
System saves customer information with customer name, and phone number. The
customer information can be also updated if needed. Customers can get one or more
appointments by providing the appointment date and time. Appointments can be edited
later if needed. Appointments may include any one or more treatments.

HNDIT 2nd year 2020 1st Semester – Object Oriented Software Design and Analysis
4
Question 05

(i) What is a swim lane diagram in UML? (02 marks)

Type of extended activity diagram, which activities performed by same acter are grouped in
to a single thread or lane.

(ii) Mention two advantages of using swim lane diagrams (02 marks)

• Clarify complex processes and Easy analysis


• Improved communication and understanding
• Point out the participants in the system

(iii)Compare the difference between “merge” and “join” in swim lane diagrams (04 marks)

• Merge is used to connect two decision paths created by a decision node


• Join is used to connect two parallel paths created by a fork.

(iv) Draw a suitable swim lane activity diagram for the following scenario related to getting
an appointment in an online beauty salon app. (12 marks)

Registered customers can request for appointments by providing appointment date and time to the
beauty salon app. If there are no other appointments at the same time, the app offers the
appointment. If there are other appointment at the same time, the beauty salon app rejects the
appointment. Then customer should pay Rs.500 in advanced for accepting the appointment. beauty
salon app directs the customer payment details to the bank. The bank checks the payment details
and verify or rejects the payment. The beauty salon app sends the appointment confirmation
message to customer for verified payments, and Invalid Payment message for rejected payments.

(Total 20 marks)

HNDIT 2nd year 2020 1st Semester – Object Oriented Software Design and Analysis
5
Registered System Bank

Customer

View treatments

Request for Appointment

With date and time

[Reject [Accept
appointment appointme
request] nt request]

Appointment Appointment
Reject message Accept message

Pay minimum Rs.500

direct payment information

Invalid Payment message


Reject Verify
Payment payment

Appointment Confirmation
SMS
HNDIT 2nd year 2020 1st Semester – Object Oriented Software Design and Analysis
6
Question 06

(i) What is Unified Software Development Process? (02 marks)

Iterative and incremental software development process framework used in object-


oriented software development

(ii) What is the technique used in USDP for reequipment capturing? (02 marks)

Use case

(iii)Explain the advantages of efficient software development methodology (04 marks)


• Clear understanding of the task ahead
• Identify drawbacks earlier
• Provide better estimates
• Deliver stable systems
• Provide better schedules.
• Keep the customer informed

(iv) Draw the Rational Unified process model and briefly explain each phase (12 marks).
(Total 20 marks)

• Inception phase- customer communication and planning activities


• Elaboration phase - modeling activities
• Construction - software development
• Transition phase - deployment of software
• Production - software is running live

HNDIT 2nd year 2020 1st Semester – Object Oriented Software Design and Analysis
7

You might also like