OOPortal OOPortal


ATL Development   «Prev  Next»

ATL COM objects - Quiz

Each question is worth one point. Select the best answer or answers for each question.
 
1. Every ATL-based COM object implemented within a server:
Please select the best answer.
  A. Has an object map entry
  B. Must have obj in its name
  C. Uses the same CLSID

2. In ATL, COM object implementation classes:
Please select the best answer.
  A. Inherit from CComObject
  B. Implement IUnknown
  C. Multiply inherit from each interface they implement as well as CComObjectRoot and CComCoClass

3. In COM, inheriting from an interface means:
Please select the best answer.
  A. The derived class must implement all functions in the interface in any order.
  B. The derived class does not have to implement the interface functions because we inherit them from the base class.
  C. The derived class must implement all functions in the interface in vtable order.

4. An ATL-based COM object implementation class must:
Please select the best answer.
  A. Implement IUnknown
  B. Have a COM map that contains an entry for each COM interface it implements
  C. Have an object map for each method in its interfaces

Score =
Correct answers: