Docsity

Midterm Exam for CSE791 - Distributed Objects (Spring 2002) - Prof. James Fawcett, Exams of Engineering

Toggle sidebar
bg1
CSE791 – Distributed Objects Spring 2002
Midterm A
Name:___________________________________ SSN:________________________
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 at
6:50. 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
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18

Partial preview of the text

Download Midterm Exam for CSE791 - Distributed Objects (Spring 2002) - Prof. James Fawcett and more Exams Engineering in PDF only on Docsity!

Midterm A

Name:___________________________________ SSN:________________________ 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 at 6:50. 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. What is meant by reference counting and how does it apply to COM?
  1. Write the IDL required to define a COM component with an interface that has a single function that marshals back to the client an array of short integers. The length of the array is to be determined by the component at run-time. Be as complete as you can be.
  1. You are designing a program that will use an in-proc COM component. The component you want to use has a function with an [in,out] double* parameter. What are your responsibilities for memory management for this function call.
  1. What is the IUnknown interface used for? Be as complete and explicit as you can.
  1. Describe the steps to activate an in-proc COM component.
  1. Describe the steps you go through to build a COM component using ATL. This is what you did in Project #2.
  1. You are the software architect of a large software project. Why might you choose to use COM extensively in the project’s implementation?

Midterm B

Name:___________________________________ SSN:________________________ 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 at 6:50. 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. What do you have to do to be able to access a COM component on a remote machine?
  1. Describe the steps you go through to build a COM component with C++, but without using the ATL or MFC libraries. This is what you did in Project #1.
  1. Write the IDL to describe a COM component with a single interface in which a single function is declared. The function accepts from the user an array of doubles, of size declared at run time, with values that the component will use. The component may change some of the values and the client will need to know what the new values are. Please be as complete as you can be.
  1. What does a class factory do?
  1. What is COM aggregation trying to accomplish? You don’t need to go through all the functionality provided by a pair of components that have an aggregation relation, just describe its purpose as clearly and completely as you can.