1. Why Multiple Inheritance is not supported in MFC?
2. What is a singleton class?
3. What is Multiple Inheritance?
4. Tell about CCmdTarget Class, CObject?
5. How to create and add menu to a program?
6. Tell about CString Class.
7. Why you are looking for a career change.
8. STL ( Main - Map and Vector ) and Iterators.
9. Different types of Inheritance.
10. what is the latest MFC version used? Answer 6.0(4.21 extn) as on 27-Nov-03. (.Net - 7.1)
11. Document/ View Architecture.
12. From which class CWinApp is derived from?
13. Multi thread application, User Interface Thread?
14. Kernal Objects.
15. Process.
16. Tell the differences between Windows 95 and Windows NT?
17. What should you be aware of if you design a program that runs days/weeks/months/years?
18. What are the advantages of using DLL's?
19. What are the different types of DLL's?
20. What are the differences between a User DLL and an MFC Extension DLL?
21. What do you have to do when you inherit from two CObject-based classes?
22. What are the additional requirements for inheritance from CWnd-based classes?
23. What is a "mutex"?
24. What's the difference between a "mutex" and a "critical section"?
25. What is a deadlock ?
26. How can we create thread in MFC framework?
27. What types of threads are supported by MFC framework?
28. When ON_UPDATE_COMMAND_UI is called? (message may vary)
29. What is a "hook"?
30. What are the difference between MFC Exception macros and C++ exception keywords?
31. How would you set the background of an edit control to a customized color?
32. What is Message Reflection? How could you accomplish the above task using message reflection?
33. What is the command routing in MFC framework?
34. What's the purpose of CView class? CDocument class? What are relationships between them?
35. What class is responsible for document template in MDI application?
36. What function must be used to add document template?
37. What the main objects are created for SDI and MDI applications?
38. We have a loop for 800,000. It fails on 756,322. How can we get the information before it fails?
39. Our Debug version works fine, but Release fails. What should be done?
40. Which controls can not be placed in MDI ?
41. List out controls which does not have events
42. Which property of textbox cannot be changed at runtime. What is the max size of textbox?.
43. How many system controls are available.
44. ___,_____ and ____ container objects.
45. What is the need of tabindex property is label control.
46. Difference between const char * and char const *.
47. Difference between Array and Container.
48. What is OOAD.
49. When you have to write copy constructor.
50. At what situations the copy constructor will be called.
51. what is syntax of copy constructor.
52. base(const base& b); what is purpose of having const and & symbol in the copy constructor.
53. By default what are all the member functions the class will have.
54. If we have a constant member variable in a class where you will initialize that variable.
55. if you have 5 constant member variable in a class what you will do.
56. what is the disadvantages of a friend function
57. Can we have a big function as a inline function. What the compiler will do if we have a big function as a inline function.
58. can the friend function and inline function be inherited.
59. what are the different types of inheritance. What is access specifiers. and how it is works while inheritance.
60. what is the size of the empty class. If any memory is allocated. Then what it's for?
61. what are the different types of casting available in C++.
62. What is the difference between Macro and templates.
63. what are the different threading models available in MFC.
64. what is an interface.
65. can we have a member variable inside the interface.
66. what is the difference between IDispatch and IUnknown.
67. what is reference count. And is there any disadvantage of having the reference count.
68. how to initialize the static member variable of a class.
69. when the static varibles loaded in memory. while the program loads or the object of the class is created.
70. what is name mangling.
71. when i press a mouse key , what is happening inside.
72. what is message pump
73. can we have our own message in the message queue.
74. what is the use of CObject and CCmdTarget Class.
75. Is all MFC classes are inherited from CObject.
76. Which is the base class of all MFC Classes.
77. What is utility class.
78. what is CCmdUI class purpose.
79. what is difference between debug build and release build
80. How is the debug info is actually stored in the executable if its created using debug build.
81. what is the memory management in MFC. And how it's handled in CObject.
82. Is all the message map functions are virtual.
83. Can we have a enum inside a class.
84. can we change the value of the enum in between.
85. what is the difference between ordinary dll and com dll.
86. what is the main purpose of having a com dll.
87. how is the message flow in SDI and MDI
88. what is the OLE concept.
89. API for creating the threads.
90. why should we have a thread or when should we have a tread.
91. what is the advantage of using document view architecture.
92. How to handle messages in the Application.
93. What is VTable.
94. Is VTable common for all objects or each object holds a different vtable.
95. what information is there in the vtable.
96. can inline function be virtual.
97. how vtable is helping in runtime polymorphism
98. what is polymorphism.
99. What is project management configuration
100. what is abstraction. How can you do abstraction.
101. what is constant member function.
102. How to initialize a const member variable in a class.
103. can a constructor be virtual.
104. can we call a member function inside a destructor.
105. can we call a virtual member function inside a destructor.
106. can you tell me the container and it's iterator type.
107. We have a static variable and not initialized. Is the program compile or not.
108. what is the default value of a static and constant member variable in a class. If they are not initialized.
109.
#include "stdafx.h"
#include <iostream.h>
int i=10;
int main(int argc, char* argv[])
{
static int i = 20;
::i++;
i++;
cout<<::i<<endl;
cout<<i<<endl;
return 0;
}
Move the static in and out of main and check for the output?
110. what is the difference between polymorphism and inheritance.
111. what is generalization.
112. what is component waterfall model.
113. what is a friend class.
114. can we access static member variable of a class in a friend class.
115. what is the difference between C and C++.
116. what is operator overloading.
117. what is the argument and return type of operator overloading.
118. what is the difference between reference and pointer.
119. what is constant reference.
120. what are all the win32 api's you have used in your project.
121. what are the operators which cannot be overloaded.
122. what is the difference between post and pre increment.
123. what happens if we overload ++ operator and call post and pre operations.
124. what is template class.
125. what is the disadvantages of multiple inheritance. Ambiguous member's may exists.
126. can we overload a destructor. No.
127. can we have a arguments inside a destructor. No.
128. What is cmd rooting.
129. Different types of thread.
130. what is worker Thread.
131. What is the starting point of the MFC Application. ( where is the winmain function is )
132. What is the difference between createthread and afxBeginThread.
133. Is there any class called CSerialize
134. What is serialization.
135. what is the purpose of CCmdTarget
136. what is message flow.
137. Is there any class called CRunTimeClass.
138. What is encapsulation.
139. How to draw a bitmap in a dialog based application.
140. what is CDC.
141. Where is OnPaint() function in a MFC workspace.
142. Where is OnDraw() function in a MFC workspace.
143. All MFC application's are basically modal or modeless.
144. how to change the default modal to modeless dialog. means that all the parent dialog's are modal by default how to change it to modeless.
145. how to create modeless dialogs.
146. how to minimize the dialog to a system tray.
147. what is VTable.
148. what is the structure of VTable.
149. How VTable works. explain with inheritance.
150. how to change the title of the dialog at runtime.
151. you have written a class how you will distribute the class.
152. what is the use of RTTI.
153. How will be "this" pointer is implemted in C++.
154. How will you use "this" Pointer in C++.
155. What is the use of bitblt
156. What is the use of memoryDC
157. In how many ways can we get the DC handle.
158. What is the use of createcompatibleDC
159. what is the use of UpdataData(true) and UpdateData(false)
160. What is the use of onNCClient
161. i have break point in my main application message function. i have opened a window as doModal. and do some operation will the break point hit or not.
162. what will you get by dereferencing a iterator pointer.
163. what is the use of pair function in STL.
164. What is the use of escape API function.
165. how to get the monitor resolution.
166. Can we write a 500 lines inside macro.
167. What is a friend function.
168. Why we are not using function instead of macro.
169. Give some real time example for macro.
170. To do odbc operation, in which class file we have to write the code. (Document view architecture question)
COM
===
Why COM ?
What is COM ?
How does it over come dll difficulties ?
Advantages
Interfaces
Class Factory
COM objects
Apartments
Inproc
Outproc
Server
Aggregation and composition
Exception Handling in COM
Marshalling
Connection points
Monikers
ATL basics
Subscribe to:
Post Comments (Atom)
0 comments
Post a Comment