Answer these 100+ COM (Component Object Model) MCQs and assess your grip on the subject of COM (Component Object Model).
Scroll below and get started!
A. Standard
B. Custom
C. Dispatch
D. Dual
E. b and c.
A. COM defines a binary standard for component interoperability.
B. COM is provided on multiple platforms like Windows, Macintosh and UNIX.
C. COM provides for robust evolution of component-based applications and systems.
D. COM does not support communication across network boundaries.
E. COM provides mechanisms for error and status reporting.
A. ActiveX has been renamed as COM.
B. COM has been renamed as ActiveX.
C. ActiveX is a technology built on COM.
D. COM is a technology built on ActiveX.
E. Both are the same.
A. Public
B. Private
C. Friend
D. Reserved
E. Protected
A. C
B. C++
C. MIDL
D. VC++
E. Visual Basic
A. directly.
B. through special communication softwares.
C. through interface pointers.
D. through API calls.
E. b or c.
A. The code used for the creation of type libraries.
B. The code used for the creation of the interface.
C. The code used for registering a component in the system.
D. The code used for creating error handling routines in the components.
E. The code that packs parameters for a method call
A. Shared memory management between components is not allowed in COM.
B. COM provides mechanisms for communications between components.
C. The components can communicate across process and network boundaries.
D. COM supports dynamic loading of components.
E. COM is programming language independent.
A. Invoke
B. GetTypeInfo
C. GetTypeInfoCount
D. GetIdsOfNames
E. c and d.
A. An ActiveX control must have a CLSID.
B. An ActiveX control may or may not support the IUnknown interface.
C. An ActiveX control must have a class object that implements IClassFactory.
D. An ActiveX control must expose its properties, methods and events via dispatch interfaces or dual interfaces.
E. An ActiveX Control must be a self-registering, in-process component
A. In all calls between a client and any out-of-process server (EXE), local or remote.
B. In all calls between a client and any remote server, EXE or DLL.
C. In calls between threads of a client and a server that have different threading models.
D. In calls between a client and an in-process server.
E. In calls between a client thread that resides in a different apartment than
the server thread.
A. Class identifier.
B. Interface indentifer.
C. Method identifier.
D. Type Library Identifier.
E. Category Identifier.
A. Interface Definition Language.
B. Interface Defined Language.
C. Inheritance Definition Language.
D. Implicit Definition Language.
E. Interface Dynamic Language.
A. Regserver32.exe c:\windows\system\mydll.dll
B. Regsvr32.exe c:\windows\system\mydll.dll
C. Regsvr mydll.dll
D. Regsvr32 mydll.dll
E. Regsvr32 /u c:\windows\system\mydll.dll
A. IUnknown
B. COM
C. IDispatch
D. IDeclare
E. IClassFactory
A. User interface objects.
B. Spellcheckers.
C. Database access objects.
D. a and c.
E. a,b and c.
A. Instancing property for an externally creatable class will have its value set to private, while all dependent objects will have their values set to publicnotcreatable.
B. Instancing property for an externally creatable class will have its value set to publicnotcreatable, while all dependent objects will have their values set to private.
C. Instancing property for an externally creatable class will not have its value set to private or publicnotcreatable, while all dependent objects will have their values set to publicnotcreatable or private.
D. Instancing for an externally creatable class will have its value set to private or publicnotcreatable, while all dependent objects will not have their values set to publicnotcreatable or private.
E. Instancing property for an externally creatable class will not have its value set to private , while all dependent objects will not have their values set to publicnotcreatable.
A. In-process
B. Out-process
C. Remote
D. a or b.
E. b or c.
A. IPersistStream
B. IPersist
C. IPersistStreamInit
D. a or b.
E. a or c
A. Marshalling code is not always used.
B. Marshalling code is only used on the server side.
C. On the server side, marshalling code unpacks in and in-out parameters and calls the method locally.
D. The marshalling code is implemented on the server side by a stub.
E. A COM server developer can create custom marshalling code.
A. Templates
B. Meta Data
C. Constructors
D. Try/catch exception handling
E. Namespaces
A. IUnknown
B. IDispatch
C. Invoke
D. Ideclare
E. IClassFactory
A. HKCR\prog-id\Clsid
B. HKCR\CLSID\{object-class-id}\LocalServer32
C. HKCR\CLSID\{object-class-id}\ProgID
D. HKCR\CLSID\{object-class-id}\TypeLib
E. HKCR\CLSID\{object-class-id}\Version
A. ITypeInfo
B. ICreateTypeInfo
C. ICreateTypeLib
D. ITypeLib
E. ITypeLib2
A. a type of interface.
B. a special method of a COM object.
C. a call to a method of a COM object.
D. an object that runs in the caller's address space.
E. an object that runs in the server process.
A. apartment
B. class
C. interface
D. Block
E. Fragment
A. By using type libraries.
B. By using IIDs.
C. By using GUIDs.
D. One cannot version interfaces, every interface is new.
E. By using IDL
A. Standard
B. Custom
C. Dispatch
D. Dual
E. a and d.
A. Dispatch interfaces get their name from the fact that are implemented using the COM interface IDispatch.
B. A dispatch interface allows callers to query an object an object at runtime for a list of its automation methods and parameters and then invoke these methods.
C. Scripting languages like VBA and VBScript can make use of both dispatch and vtable interfaces.
D. COM objects that expose dispatch interfaces are referred to as Automation objects or Automation servers.
E. Dispatch interfaces make it much easier for tools such as Visual Basic and PowerBuilder to be adapted to use COM objects.
A. DCOM is based on the COM technology.
B. It is a low-level extension of the COM technology.
C. DCOM is designed to run only on Windows platforms.
D. DCOM is layered on the Open Group Distributed Computing Environment RPC mechanism.
E. Using DCOM, applications are not forced to upgrade each time the object changes, as this is done automatically.
A. IUnknown
B. IClassFactory
C. IDispatch
D. IDeclare
E. Invoke
A. MIDL is relatively complex.
B. MIDL clearly separates interface from implementation.
C. All out parameters must be pointers.
D. Function overloading is not supported.
E. The return type for methods in object interfaces must be an HRESULT.
A. RegisterTypeLib
B. RegTypeLib
C. RegTlb
D. RegisterTlb
E. RegType
A. Interfaces
B. Classes
C. Type Libraries
D. Methods
E. Categories
A. Standard
B. Custom
C. Standard, custom
D. Standard, custom, in-built
E. Standard, in-built
A. Interface
B. ProgID
C. CLSID
D. IID
E. LIBID
A. Prevent other clients from accessing the resources of the object until the lock is removed.
B. Is used to store the state of an object on the hard disk.
C. Keep a component open in memory, thus allowing instances to be created more quickly.
D. Prevent the component from crashing.
E. Destroy a component that is open and no longer needed.
A. GUIDs are integers that are guaranteed to be unique in the world across space and time.
B. They uniquely identify every interface.
C. They uniquely identify every component object class.
D. The GUIDs are embedded in the type library.
E. The GUIDs are used by the COM system dynamically at bind time to ensure that no false connections are made between components.
A. Interfaces.
B. GUIDs.
C. proxies and stubs.
D. Type Libraries.
E. IDL.
A. DCOM
B. DCOMRUN
C. DCOMUTIL
D. DCOMCNFG
E. DCOMCN
A. A COM object that has multiple interfaces has only one implementation of the IUnknown interface.
B. All calls to QueryInterface for a single COM object must behave in the same manner at all times.
C. QueryInterface is the mechanism by a caller gains access to the other services defined by an object.
D. AddRef and Release point to the fact that the lifetimes of COM objects are controlled through reference counting.
E. The IID for IUnknown, is called IID_IUnknown, and is defined in the COM header file since it is a standard interface defined by Microsoft.
A. Invoked to let the COM object know about a new reference to the object.
B. Invoked to let the COM object know that a reference is no longer needed.
C. Invoked when the COM object is destroyed.
D. Invoked when the COM object is instantiated.
E. Always invoked after the Release method.
A. 4
B. 8
C. 16
D. 32
E. 64
A. VBScript
B. PowerBuilder
C. Visual Basic
D. a and c.
E. a,b and c.
A. 3
B. 4
C. 5
D. 6
E. 7
A. No language dependency.
B. Location transparency.
C. Interface definition.
D. Unique naming of Classes and Interfaces.
E. No provision for meta data
A. IUnknown
B. Invoke
C. IDispatch
D. IDeclare
E. IClassFactory
A. Microsoft Interface Definition Language.
B. Macro Interface Definition Language.
C. Multiple Interface Definition Language.
D. Macro Identification Language.
E. Minimum Interface Definition Language
A. ComID
B. ProgID
C. ClassID
D. ObjectID
E. ComponentID
A. CLSID
B. ID
C. IID
D. CATID
E. LIBID