C++ COM ActiveX Interview Questions And Answers

Download C++ COM ActiveX Interview Questions and Answers PDF

Sharpen your C++ COM ActiveX interview expertise with our handpicked 22 questions. Our questions cover a wide range of topics in C++ COM ActiveX to ensure you're well-prepared. Whether you're new to the field or have years of experience, these questions are designed to help you succeed. Get the free PDF download to access all 22 questions and excel in your C++ COM ActiveX interview. This comprehensive guide is essential for effective study and confidence building.

22 C++ COM ActiveX Questions and Answers:

C++ COM ActiveX Job Interview Questions Table of Contents:

C++ COM ActiveX Job Interview Questions and Answers
C++ COM ActiveX Job Interview Questions and Answers

1 :: What is Component Object Model?

COM defines an API to allow for the creation of components for use in integrating custom applications or to allow diverse components to interact.

But in order to interact, components must adhere to a binary structure specified by Microsoft.

As long as components adhere to this binary structure, components written in different languages can interoperate.
Read More

2 :: Tell me how does COM provide language transparency?

COM defines an API to allow for the creation of components for use in integrating custom applications or to allow diverse components to interact.

But in order to interact, components must adhere to a binary structure specified by Microsoft.

As long as components adhere to this binary structure, components written in different languages can interoperate.
Read More

3 :: Do you know what is a type library?

A file or component within another file that contains standard descriptions of exposed objects, properties, and methods

A type library contains a binary description of an interface exposed by a COM-component. In this sense, they contain the same information that is contained in an IDL (Interface Definition Language) file..
Read More

4 :: What is IUnknown interface?

The IUnknown interface lets clients get pointers to other interfaces on a given object through the QueryInterface method, and manage the existence of the object through the IUnknown::AddRef and IUnknown::Release methods.

IUnknown methods can be used to switch between interfaces on an object, add references, and release objects.
You must implement IUnknown as part of every interface.
Read More

5 :: What is STL, standard template library?

The Standard Template Library, or STL, is a C++ library of container classes, algorithms, and iterators; it provides many of the basic algorithms and data structures

The STL includes the classes vector, list, deque, set, multiset, map, multimap, hash_set, hash_multiset, hash_map, and hash_multimap.
Read More

6 :: What is OLE?

Object Linking and Embedding (OLE) is about using documents generated by one application inside another application.
Read More

7 :: What is ActiveX?

ActiveX is a Microsoft rebranding of OLE with more focus on smart Windows controls.
Read More

8 :: What is object serialization?

A serialized object represents the type of data stored in the object, its information. Object serialization is a process of reading or writing an entire object from a file. This helps in saving session state information by servlets, for sending parameters for Remote Method Invocation (RMI) calls.
Read More

9 :: What is Globally Unique Identifier?

A 16-byte number generated by Microsoft programs that uniquely identifies a network or user or computer or document. It is one of the elements of information that can be passed when you connect to an Internet site, and it may be stored in cookies
Read More

10 :: Why does COM need GUIDs?

A globally unique identifier (GUID) is used for unique IDs. No two GUIDs are the same no matter what computer they were generated on. The attribute clsid defines the GUID of the associated ActiveX control to use.
Read More

11 :: Define STL, standard template library?

STL contains classes, algorithms, and iterators. It contains set of ready to use C++ classes that can be used with built in type and user defined operations. STL uses templates to achieve the results.
Read More

12 :: Explain object serialization?

A serialized object represents the type of data stored in the object, its information. Object serialization is a process of reading or writing an entire object from a file. This helps in saving session state information by servlets, for sending parameters for Remote Method Invocation (RMI) calls.
Read More

13 :: Explain shallow and deep copy?

A shallow copy just copies the values of the data as they are. Even if there is a pointer that points to dynamically allocated memory, the pointer in the copy will point to the same dynamically allocated.
Read More

14 :: Explain dual interfaces?

A dual interface allows its methods to be accessed as dispinterface methods or as vtable methods.

Dual interface is one that supports both - IDispatch interface and vtbl-based interface. Therefore, it might be used in scripting environment like VBScript and yet to use power and speed of vtbl-based interface for non-scripting environment.
Read More

15 :: Explain ActiveX and OLE?

Object Linking and Embedding (OLE) is about using documents generated by one application inside another application.

ActiveX is a Microsoft rebranding of OLE with more focus on smart Windows controls.
Read More

16 :: Explain type library?

A file or component within another file that contains standard descriptions of exposed objects, properties, and methods

A type library contains a binary description of an interface exposed by a COM-component. In this sense, they contain the same information that is contained in an IDL (Interface Definition Language) file.
Read More

17 :: Explain GUID?

GUID stands for Globally Unique Identifier.
A 16-byte number generated by Microsoft programs that uniquely identifies a network or user or computer or document. It is one of the elements of information that can be passed when you connect to an Internet site, and it may be stored in cookies.
Read More

18 :: Why COM need GUIDs?

A globally unique identifier (GUID) is used for unique IDs. No two GUIDs are the same no matter what computer they were generated on. The attribute clsid defines the GUID of the associated ActiveX control to use.
Read More

19 :: Explain IUnknown interface?

IUnknown interface provides clients like DirectX control of to get pointers to other interfaces. All COM interfaces are inherited from IUnknown interface. It is used In multiple inheritance where the various interfaces can share one implementation of IUnknown.
Read More

20 :: How COM provide the language transparency?

COM defines an API to allow for the creation of components for use in integrating custom applications or to allow diverse components to interact.

But in order to interact, components must adhere to a binary structure specified by Microsoft.
As long as components adhere to this binary structure, components written in different languages can interoperate.
Read More

21 :: Explain Component Object Model?

COM defines an API to allow for the creation of components for use in integrating custom applications or to allow diverse components to interact.
But in order to interact, components must adhere to a binary structure specified by Microsoft.

As long as components adhere to this binary structure, components written in different languages can interoperate.
Read More

22 :: Define the syntax and semantics for a function template?

Templates is one of the features of C++. Using templates, C++ provides a support for generic programming.

We can define a template for a function that can help us create multiple versions for different data types.

A function template is similar to a class template and it syntax is as follows:
template <class T>
Return-type functionName (arguments of type T)
{
//Body of function with type T wherever appropriate
}
Read More