Heq May21 Dip Oop
Heq May21 Dip Oop
B6.
a) Describe TWO advantages and TWO disadvantages of the object oriented
approach to programming.
(10 marks)
b) C++ and Java are statically typed. Other languages, such as Python, are
dynamically typed. Define static and dynamic typing and describe how these
concepts relate to strong and weak typing.
(15 marks)
End of Examination
(page 4)
Section A A3.
Answer Section A questions in Answer Book A Parcel Plus is a company that specialises in door to door collection and delivery. Customers
can either be a Personal Customer, such as someone selling an item online that needs
delivering, or a Business Customer that regularly sends parcels. To use their services, all
A1. customers must first register for an account. Personal Customers need to provide their
a) Describe the following: name, contact telephone number, email address and credit card details. Business
Customers need to provide their company name, telephone number, address, email address
i) Abstract data type; and the name of a main contact for any queries.
ii) Structured programming;
iii) Encapsulation; Once these details have been accepted, the customer will be issued with an account number
iv) Untyped languages; that they must quote when contacting the company. Business Customers will be allocated a
v) Typed languages. dedicated Account Manager.
(15 marks)
When any type of customer requires a parcel to be delivered, they will contact Parcel Plus to
b) Choose THREE of the above concepts and discuss how each have contributed to arrange collection. The customer needs to provide details of where the parcel will be
the development of object oriented languages. collected from, where it will be delivered to, how many parcels are to be collected, and which
(10 marks) type of service they want, for example, next day delivery.
Once the collection has been arranged, a delivery label will be generated. The details on this
A2. will be used by a Dispatcher to schedule the vehicle needed for the collection. Each parcel
A systems tester is working on a mobile application for an on-line retailer. The system will be will be given a priority number by the Dispatcher and those with the highest priority will be
developed using object oriented techniques and testing is needed throughout the project life collected first.
cycle. The tester will have to work with the developers and team leaders to develop test cases.
It is expected that the whole project will take 18 months to complete. By 12 noon each day, the Dispatcher needs to generate a delivery schedule to ensure all the
collected parcels are delivered in line with the level of service required by the customer.
a) The team leaders are debating whether to use the black-box testing or white-box
testing techniques. Explain what these terms mean and how they could be used Each Driver has a mobile device with a copy of the delivery labels; a person at the delivery
when testing object oriented software. Include the advantages and disadvantages address must sign this to say that the parcel has been delivered. This will flag that the
of each technique in your discussion. delivery has been completed and an email will be generated to let the customer know.
(15 marks)
Once the parcel has been delivered, Personal Customers will have their credit card debited
b) Describe what additional approaches to testing could be used for such a system by the amount required; whilst Business Customers will have their invoice account debited.
and where they would be used as the project develops. Once a month, the Accounts Manager will generate the invoices for payment.
(10 marks)
a) Draw a Use Case diagram for this system.
(15 marks)
b) Discuss the role of Use Cases (diagrams and descriptions) in the development of an
object oriented system.
(10 marks)
[Turn Over]
(page 2) (page 3)