Docsity

CSE775 - Spring 2008 Midterm Examination for Distributed Objects - Prof. James Fawcett, Exams of Engineering

Toggle sidebar
bg1
CSE775 – Distributed Objects Spring 2008
Midterm #1 Examination
Name:________________________________________ SUID:____________________
This is a closed book examination. Please place all your books on the floor
beside you. You may keep one page of notes on your desktop in addition to
this exam package. All examinations will be collected promptly at the end of
class. Please be prepared to quickly hand in your examination at that time.
If you have any questions, please do not leave your seat. Raise your hand
and I will come to your desk to discuss your question. I will answer all
questions about the meaning of the wording of any question. I may choose
not to answer other questions.
You will find it helpful to review all questions before beginning. All questions
are given equal weight for grading, but not all questions have the same
difficulty. Therefore, it is very much to your advantage to answer first those
questions you believe to be easiest.
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download CSE775 - Spring 2008 Midterm Examination for Distributed Objects - Prof. James Fawcett and more Exams Engineering in PDF only on Docsity!

Midterm #1 Examination

Name:________________________________________ SUID:____________________ This is a closed book examination. Please place all your books on the floor beside you. You may keep one page of notes on your desktop in addition to this exam package. All examinations will be collected promptly at the end of class. Please be prepared to quickly hand in your examination at that time. If you have any questions, please do not leave your seat. Raise your hand and I will come to your desk to discuss your question. I will answer all questions about the meaning of the wording of any question. I may choose not to answer other questions. You will find it helpful to review all questions before beginning. All questions are given equal weight for grading, but not all questions have the same difficulty. Therefore, it is very much to your advantage to answer first those questions you believe to be easiest.

  1. Describe the Dispatch interface, in as much detail as you can^1. When would you use it? (^1) This question is not about the implementation of the interface, but about its syntax and the expected semantics of any implementation.
  1. Suppose that, in Project #2, you decided that each host should provide a thread to service client requests, and a separate thread to handle communication. Describe an apartment structure for this design. What are the threading models for each, and how will shared resources be synchronized.
  1. Write code to respond to clicks on a button control on a Win32 window by popping up a message box, with a “been clicked” message.
  1. Describe the COM interface policy. Discuss its symmetric, reflexive, and transitive properties. How does one establish the identity of an instance of a COM component? What does that have to do with COM interface policy?
  1. Write the IDL for an interface that passes a collection of file names. You may structure the collection in any way that seems effective. Write client-side code that calls this function and stores the results in an array of strings.