
CSE775 – Distributed Objects Spring 2003
Review – Midterm Examination Given Spring 2003
1. Compare the event models for ActiveX controls and .Net controls.
How are they similar? How are they different?
2. Pick any three standard COM interfaces, discuss when and why you
would chose to use them in a application.
3. You are building an application to synchronize two directories on
separate machines. Show how you would use the .Net event
mechanism to signal that the directories do or do not need
synchronization. Write all the code needed to publish the event,
subscribe to the event, and raise the event.
You need to write less than a dozen lines of code. Describe how
these lines fit into the context of the project.
4. Write IDL to describe an interface that provides two functions. The
first function accepts an array of strings. The number of strings in
the array is determined at run-time. The second function returns an
array of strings, where the number of strings returned is determined
at run-time.
5. Discuss the relative strengths and weaknesses of the COM and .Net
object models.
6. Describe the anatomy of an In-Process COM component. Be as
complete as you can. For each part, describe how the component,
COM infrastructure, and component’s client interact.
7. Does .Net use reference counting for its controls? If so, why? If not,
why?
8. When are calls from a client to a COM component marshaled? State
the general case, then be as specific as you can be about when that
happens.
9. What are a proxy and stub? When do you need them? What are
their roles?
10. Describe the marshaling process for an Apartment Threaded out-
of-process COM component.
11. What is .Net?