Com Class Object Factories - Quiz Explanation
The answers you selected are indicated below, along with text that explains the correct answers.
1.
What does a COM class define?
Please select the best answer.
A.
The methods in a COM interface
B.
The interfaces and CLSID of a COM object
C.
A class factory
The correct answer is B.
A COM class defines a COM object by CLSID and its implemented interfaces.
2.
What are class objects?
Please select the best answer.
A.
COM objects that implement an object creation interface to create a specific type of COM object
B.
Containers for COM objects
C.
The predecessor to dot.net
The correct answer is A.
Class objects implement a known object creation interface to create an instance of a specific type of COM object.
3.
When are COM objects created?
Please select the best answer.
A.
When a client calls
new COMClassObject()
B.
Automatically by the COM subsystem
C.
When a COM client gets a class object and uses its object creation interface to create an instance of a COM object
The correct answer is C.
Clients create instances of a COM object through the class object's object creation interface.
4.
A class factory is:
Please select the best answer.
A.
The only type of class object supported by COM
B.
A class object that implements the
IClassFactory
interface
C.
Not a COM object
The correct answer is B.
A class factory is a specific type of class object.