InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What Is The Difference Between Struct And Class? |
|
Answer» There are few DIFFERENCES:
There are few differences: |
|
| 2. |
Name Some Important Features Of Vc++? |
|
Answer» Some of the important features of VC++ are as follows:
Some of the important features of VC++ are as follows: |
|
| 3. |
Explain About Vc++? |
|
Answer» Microsoft visual C++ helps programmers and developers to create windows and .NET based applications. This also helps in DEVELOPING applications for WEB, windows based applications, solutions for thin and smart client based mobile devices. It is USED for developing applications for windows API, .NET framework, etc. Microsoft visual C++ helps programmers and developers to create windows and .NET based applications. This also helps in developing applications for web, windows based applications, solutions for thin and smart client based mobile devices. It is used for developing applications for windows API, .NET framework, etc. |
|
| 4. |
What Is The Use Of Afx_manage_state ? |
|
Answer» MFC uses the resource HANDLE of the MAIN application to load the resource template. If you have an exported function in a DLL, such as one that LAUNCHES a dialog box in the DLL, this template is actually stored in the DLL module. You need to switch the module STATE for the correct handle to be used. You can do this by adding the following code to the beginning of the function: AFX_MANAGE_STATE(AfxGetStaticModuleState( )); This swaps the current module state with the state RETURNED from AfxGetStaticModuleState until the end of the current scope. MFC uses the resource handle of the main application to load the resource template. If you have an exported function in a DLL, such as one that launches a dialog box in the DLL, this template is actually stored in the DLL module. You need to switch the module state for the correct handle to be used. You can do this by adding the following code to the beginning of the function: AFX_MANAGE_STATE(AfxGetStaticModuleState( )); This swaps the current module state with the state returned from AfxGetStaticModuleState until the end of the current scope. |
|
| 5. |
What Is Carchive Class Does? |
|
Answer» This class helps to do the serialization and de-serialisation. storing of objects from and to disk STORAGE. The CArchive class allows user to save a complex objects to the permanent storage (USUALLY disk storage) binary format. This objects persists after those objects are DELETED. Later you can LOAD the objects from permanent storage, RECONSTITUTING them in memory. This class helps to do the serialization and de-serialisation. storing of objects from and to disk storage. The CArchive class allows user to save a complex objects to the permanent storage (usually disk storage) binary format. This objects persists after those objects are deleted. Later you can load the objects from permanent storage, reconstituting them in memory. |
|
| 6. |
Explain About Initapplication()? |
|
Answer» To DISPLAY an output for a CERTAIN application programmers have to use InitApplication() method. InitApplication is a Boolean method. This function outputs a true if an application gets succeeded. If it did not succeed it displays a FALSE command. Applications rely on this method to display a certain o/p. To display an output for a certain application programmers have to use InitApplication() method. InitApplication is a Boolean method. This function outputs a true if an application gets succeeded. If it did not succeed it displays a false command. Applications rely on this method to display a certain o/p. |
|
| 7. |
Explain About Cwinthread Class? |
|
Answer» If you WANT to provide a window to an APPLICATION it is imperative to create a thread which can be done using CWinThread. A public member variable is used with CWinThread is m_pMainWnd. The main ADVANTAGE which you can get when using this thread, it terminates the application WITHOUT any hassles. If you want to provide a window to an application it is imperative to create a thread which can be done using CWinThread. A public member variable is used with CWinThread is m_pMainWnd. The main advantage which you can get when using this thread, it terminates the application without any hassles. |
|
| 8. |
Explain About Utility? |
|
Answer» Utility function has several general templates and can be used in Standard TEMPLATE library. Some of them are tuple ELEMENT CLASS which is used to wrap the TYPE of pair element. Get function is used to get an element from the pair object. Tuple size class wraps the pair element count. Utility function has several general templates and can be used in Standard template library. Some of them are tuple element Class which is used to wrap the type of pair element. Get function is used to get an element from the pair object. Tuple size class wraps the pair element count. |
|
| 9. |
What Is The Disadvantage Of A Template Function? |
|
Answer» A TEMPLATE FUNCTION cannot be distributed in the OBJ form. This is because, fuction with which parameters the template function is going to be called is decided at the run time only. Therefore an obj form of a template function cannot be made by merely COMPILING it. A template function cannot be distributed in the obj form. This is because, fuction with which parameters the template function is going to be called is decided at the run time only. Therefore an obj form of a template function cannot be made by merely compiling it. |
|
| 10. |
Explain About Frames? |
|
Answer» Frame describes about the borders, dimensions and location of the window. Two types of MFC applications are present which use a frame. APPLICATION using frames use a concept known as Document/View architecture. This architecture ALLOWS a certain PROGRAM to be present in applications. Frame describes about the borders, dimensions and location of the window. Two types of MFC applications are present which use a frame. Application using frames use a concept known as Document/View architecture. This architecture allows a certain program to be present in applications. |
|
| 11. |
Explain About Typedef? |
|
Answer» A TYPE predicate takes ONE or more arguments and it is a TEMPLATE. If a type predicate is TRUE it is publicly DERIVED directly or indirectly from true type def. In case it is false it is publicly derived from false type def. A type predicate takes one or more arguments and it is a template. If a type predicate is true it is publicly derived directly or indirectly from true type def. In case it is false it is publicly derived from false type def. |
|
| 12. |
Explain About Tuple In Visual C++? |
|
Answer» TUPLE DEFINES instances of objects in varying types. Declarations, TEMPLATE functions and functions are defines in tuples. In class there are three elements they are tuple class, tuple SIZE Class and tuple ELEMENT Class are defined in Visual C++. Tuple defines instances of objects in varying types. Declarations, template functions and functions are defines in tuples. In class there are three elements they are tuple class, tuple size Class and tuple element Class are defined in Visual C++. |
|
| 13. |
Explain About Cframewnd? |
|
Answer» MFC has an extensive set of classes present in its library out of which CFrameWnd is ONE of those. This is a very important class and it is USED FREQUENTLY. USER defined classes can be created by CFrameWnd. To create a windows frame CFrameWnd provides class MFC has an extensive set of classes present in its library out of which CFrameWnd is one of those. This is a very important class and it is used frequently. User defined classes can be created by CFrameWnd. To create a windows frame CFrameWnd provides class |
|
| 14. |
State Some New Features Which Are Incorporated Into Microsoft Visual C++ 2008? |
|
Answer» Some of the new features which are introduced to VC++ are a LARGE set of new MFC classes which will certainly HELP in building modern user interfaces. TR1 is the major addition to the PACK of VC++. This also has new user interface, adjustable panes, and support for MICROSOFT office ribbon, controls, dialog boxes and WINDOWS. Some of the new features which are introduced to VC++ are a large set of new MFC classes which will certainly help in building modern user interfaces. TR1 is the major addition to the pack of VC++. This also has new user interface, adjustable panes, and support for Microsoft office ribbon, controls, dialog boxes and windows. |
|
| 15. |
What Are All The Situations Where The /gs Compiler Is Not Applied? |
|
Answer» These are the FOLLOWING situations where /GS compiler is not applied.
These are the following situations where /GS compiler is not applied. |
|
| 16. |
Can We Declare A Static Function As Virtual? |
|
Answer» The VIRTUAL function mechanism is USED on the SPECIFIC object that determines which virtual function to call. Since the static functions are not any WAY related to OBJECTS, they cannot be declared as virtual. The virtual function mechanism is used on the specific object that determines which virtual function to call. Since the static functions are not any way related to objects, they cannot be declared as virtual. |
|
| 17. |
Describe About Unordered_map? |
|
Answer» Unordered_map DEFINES container TEMPLATE classes such as UNORDERED map and unordered multimap template. Under DECLARATIONS unordered map Class and unordered multimap class are defined. These classes store hash table. Unordered_map defines container template classes such as unordered map and unordered multimap template. Under declarations unordered map Class and unordered multimap class are defined. These classes store hash table. |
|
| 18. |
Discuss About The Stack Based Buffer Over Run Detection In Vc++? |
|
Answer» Stack based buffer over run protects the program from executing malicious CODE. Function epilogue code checks the returned COOKIE for similarity if there is a mismatch it STOPS executing the code. It also moves around the stack which makes the data corruption HARDER. These features are present in Visual C++ 2005. It also mitigates VARIOUS buffer over runs through memory decrease. Stack based buffer over run protects the program from executing malicious code. Function epilogue code checks the returned cookie for similarity if there is a mismatch it stops executing the code. It also moves around the stack which makes the data corruption harder. These features are present in Visual C++ 2005. It also mitigates various buffer over runs through memory decrease. |
|
| 19. |
Explain About Regex_search Function? |
|
Answer» Regex_search function searches for a regular expression. A true function is returned only when the search in its operand SEQUENCE SUCCEEDS. It also defines the VARIOUS capture groups in the regular expression. Some of the parameters are alloc, Elem, RXtraits, etc. Regex_search function searches for a regular expression. A true function is returned only when the search in its operand sequence succeeds. It also defines the various capture groups in the regular expression. Some of the parameters are alloc, Elem, RXtraits, etc. |
|
| 20. |
Explain About The Function Regex? |
|
Answer» This defines a TEMPLATE to parse certain regular expressions. It also defines several CLASSES and FUNCTIONS to search text that is matching a regular expression object. There are many DECLARATIONS, type definitions, template functions, and operator. This defines a template to parse certain regular expressions. It also defines several classes and functions to search text that is matching a regular expression object. There are many declarations, type definitions, template functions, and operator. |
|