Note: For the following questions, answer only for C++. DO NOT indulge with C++.Net or VC++.Net.
- In a function overloading; if only return type is different; will that be a compiler error?
- In a function overriding; if only return type is different; what really that indicates? Does it provoke for any error?
- What is copy constructor? Why developer need to create it's own copy constructor when compiler provides it as a default? What it returns?
- What is the difference between copy constructor and assignment operator? Explain memory allocation w.r.t. the same? What assignment operator returns?
- What is shallow copying and deep copying?
- What is the difference between call by reference and call by pointers?
- Is templates an
achievement of polymorphism? - What do you understand by run time polymorphisms and run time type identification (RTTI)?
- What is vector? What is the difference between arrays and vectors?
- Why do we use maps?
- What is the difference between new operator and malloc()? What is the difference between delete operator and free()?
- Consider int nMarks[32]; what delete nMarks; will do? And what delete [] nMarks; will?
- Explain function to pointer concept.
- Where can we use static keyword? Explain it's usage for the variables?
- Explain different types of memory allocations in C++ such as heap segment,
data segment and static memory. - What is the use of extern keyword and how the memory is allocated for the variable declared as extern?
- Why do we use virtual destructors? Is there anything called as virtual constructors? If we want to implement virtual constructors, how to do that?
- How to implement singleton design pattern in C++?
- What do you mean by named constructors?
- Can we have private constructors?
- Why do we use virtual base classes?
- Can we implement multiple inheritance in C++? If yes, how?
- What are the const functions?
- What is the difference between const char * and char *const?
- Why do we use void pointers?
- What is class diagram and sequence diagram?
- What is Association, Aggregation and Composition?
- How do we handle base exception in pure C++?
- Brief the significance of VPTR and VTABLE?
- What are smart pointers?
Visual C++ (VC++ IDE), Microsoft Foundation Classes(MFC), Software Development Kit (SDK) i.e. Windows Programming under C
- How OS knows about the EXE file created either by VC++6.0 or VC++.Net?
- What is message pumping?
- Describe SendMessage() and PostMessage().
- What is PostThreadMessage()?
- Why most of the classes are derived by CObject? What functionalities it provide?
- Name few of the classes which are not derived by CObject?
- Explain Document View architecture in terms of it's usage; classes, macros and some of the important functions involves in it.
- What are the handlers?
- Explain HWND and CWnd.
- Explain message mapping and macros related to it? Which class handles all messages.
- Give a minimal skeleton VC++ program for creating a window.
- What are the uses/functionalities provided by CRuntimeClass?
- What are the message and functions used for ticking menu items as "radio button" OR "check box"?
- What is device context? What classes are used for the same?
- Explain DDX and DDV? How can we limit the length of the edit field?
- How can we restrict the format (mask) of a edit field?
- Explain the concept of Modal and Modeless dialog? How syntax differs in creation of these.
- What is synchronous and asynchronous messaging?
- How compilers preserve function calls?
- Explain the concept and implementation of SDI and MDI.
- What is WindowProc?
- Explain macro DECLARE_MESSAEGE_MAP(), BEGIN_MESSAGE_MAP(..,..) with their internals?
Dynamic Linked Library (DLL), Component Object Model (COM), Distributed COM (DCOM)
- What do you mean by linking?
- Why COM is required? What is it?
- What is the difference between regular DLL and extension DLL?
- What is static library and dynamic library?
- What are .lib and .dll files? What will be the concern of the .exe file using each of these files?
- Distinguish between ActiveX EXE and ActiveX DLL.
- What is static linking and dynamic linking?
- Mention the disadvantages of extension DLL.
- Explain the usage of LoadLibrary(), FreeLibrary() and function to pointer while using DLL.
- What do you mean by name mangling? Is it just a name decoration?
- Why DCOM is required when COM DLLs exist?
- Brief about interfaces in COM.
- Consider these two scenarios: DLL is accessed by two different applications and EXE is accessed by two different application. Comment on the memory usage of DLL, EXE and both of the applications.
- What is ClassID and GUIDs?
- Explain CoCreateInstance and CoInitialize?
- What is Dual Interface?
- What do you mean by Location transperancy?
- What are CComPtr and CComQIPtr?
- Some quickies: (If anyone is interested; I am surely not!)
- A semaphore is an object that can have a state of ON or OFF. It is used to communicate between two or more tasks. If you have two tasks, A and B, A can set a semaphore to ON, kick off task B, when task B has finished it can set the semaphore to OFF then task A knows that B is finished.
- A Mutex (mutual exclusion) is like semaphore in that it has two states, but in reality they are more like LOCKED and UNLOCKED. Typically, with a Mutex, you have a Lock and and Unlock function. When a task calls the Lock function, it either immediately locks the mutex if it was unlocked or it causes the task to wait until the mutex is unlocks by another task.
- A critical section is a mutex that is tied to a block of code. It's purpose is to only allow one task at a time be in a block of code.
C#, ASP.Net, ASP.Net Internals
- What are delegates? What is the significance of Invoke() method?
- Why is keyword as used for?
- In inheritance, explain the use of keywords overrides and new.
- How to implement singleton design pattern in C#?
- What is reflection? When this used? Which namespace is used for it?
- What do you mean by localization? Have you ever implemented it?
- Explain the scenario of inter portal communication with System.Net - HttpRequest and HttpResponse.
- What is global namespace?
- Brief SSO concept.
- What are the disadvantages of viewstate?
- What is Context?
- Explain the use of global.asax, it's events and explain how those can be used to maintain the number of user visiting the website.
- What is the difference between abstract class and interface?
- Distinguish between Copy() and Clone().
- What do you mean by satellite assembly?
- Apart from class, where else can we use sealed keyword?
- Explain different types of validator controls.
- Explain WebService and WebMethods.
- Why do we use internal protected access specifier?
- Explain the concept of Generics in C# 2.0
- Why do we use partial classes?
- Distinguish between remoting and web services?
.Net, .Net Architecture, .Net 2.0, Design Patterns
- What are value types and reference types? Further explain boxing and unboxing.
- Explain memory allocation in .Net i.e. stack memory and heap memory.
- Distinguish between String and StringBuilder.
- Explain singleton design pattern and also mention how we can break it.
- What is the role of JIT in CLR?
- Why do we use Global Assemble Cache?
- Explain the concept of Application Domain and assembly.
- How languages are type safe?
- What is MSIL?
- What is garbage collection? How is it implemented in .Net?
- What is __gc?
- Explain collections in .Net. i.e. HashTable, ArrayList and IComparable interface.
- Explain Connected and Disconnected scenario in ADO.NET.
- Why do we use Fill() and Update()?
- What is Int16, Int32, Int64 in .Net?
- What is DLL Hell and how it is removed from .Net?
- In GAC, how do we maintain different versions of DLL?
- Why do we use .config file?
Oracle 10g as a backend
- Explain different types of joins? Mainly self join and outer join. Further explain outer join in detail with its types?
- Explain group by clause, related aggregate functions and having clause?
- What do you mean by referential integrity?
- What are the different types of triggers?
- Explain difference between in and out parameters?
- What are ACID properties?
- What is the difference between primary key and unique not null?
- Can a column with constraint unique contain null value?
- What is the difference between delete from tablename and truncate table tablename?
- Till what normalized form have you normalized
the table?