


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Main points of this exam paper : Observer Pattern, Programming Model, Observer Pattern, Customised Socket, Statements, Classes, Essential, Comments, Reference Number, Credit Card Number
Typology: Exams
1 / 4
This page cannot be seen from the preview
Don't miss anything!



Autumn Examinations 2011/
Module Code: SOFT
School: School of Science and Informatics
Programme Title: Bachelor of Science (Honours) in Software Development
Programme Code: KSDEV_8_Y
External Examiner(s): Ms Deirdre Lawless Internal Examiner(s): Mr. Denis Long
Instructions: Answer Q1 and two other questions questions.
Duration: 2 Hours
Sitting: Autumn 2012
Requirements for this examination: Answer Q1 and two other questions questions.
Note to Candidates: Please check the Programme Title and the Module Title to ensure that you have received the correct examination paper. If in doubt please contact an Invigilator.
Q1. a) Describe the Observer Pattern. ( 10 Marks)
b) What programming model best describes using the observer pattern? ( 3 Marks )
c) Give two examples where the observer pattern could be used and why it is needed. ( 4 Marks )
d) Give a Java RMI code to implement the Observer pattern. (15 Marks)
Q2. a) What is meant by the term Customised Socket? (5 Marks)
b) Give two examples when you might want to customize a socket (or types of Sockets). (6 Marks) c) Give an example code to implement a Customised Socket. Full java programs not essential, but you do need to give the main statements/classes altered, along with comments about what is going on. (23 Marks)
Q4. a) When RMI was used first it was limited to using just java programs. This has changed, RMI can now interact with other systems/languages. Name one of these systems and the protocol(s) that allows this to happen? (5 Marks) b) Why is it sometimes better in terms of execution times to distribute an application? Give an example. (4 Marks)
c) What is the motivation for having services provided by multiple servers in a distributed system? (4 Marks)
d) Describe and give an example of the basic request reply protocol. (4 Marks)
e) Describe the three basic RPC semantics? Which is the preferred semantic? (6 Marks)
f) What is meant by the term Client-Server architecture? Describe this architecture. (6 Marks)
g) What is meant by the term “Blocking-call”? Give an example of a blocking call using RMI. How might this be avoided? (5 Marks)